Шпаргалка
edge(x) — once when it becomes true
changed(x) — when the number changes (first tick is quiet)
every(sec) — repeat while true (first tick only arms)
cooldown(sec) — true immediately, then quiet for N s
held(x, sec) — true after it holds; the editor writes edge(held(...)), so it fires once
at("HH:MM") — once per day
hyst(val, on, off) — gap between on and off
sunrise() sunset() — HHMM, or 9999 if no weather
between(sunrise(), sunset()) — daylight
let in fn: this block only, 32 at once. Top let and static share 36 names. static inits once.
mins() minutes from midnight. day() day number. delta(x) change since last tick. round(x) clamp(x,lo,hi).
set(pid, value) needs both arguments. Two functions with the same name are an error.
setInterval(tick(), 1000); at the top — how often tick() runs. Omit it and tick() is every 1000 ms.
setInterval(name(), ms); runs that function on its own timer. Other functions never run unless listed.
tg/log/http: [pid110] and [name] are filled in. tg: 3 per tick, 8/min, 120/hour. http: 2. log: 3, 64 chars.
Script ≤ 10000 bytes. Triggers: 32 (edge/every/held/at/changed/cooldown/hyst). avg: 8.
expose 820–827 is RAM. DS18B20 uses 800–819.