Kiri Lua API v1
Make the indoor unitreact locally .
Write a small rule here, run the preflight check, then paste it into Admin > Automation on your Kiri Bridge. Scripts run locally with bounded memory and instructions.
automation.lua
0 / 12288 bytes
Loading editor...
API reference v1
Hooks on_state_changed(now, previous)on_power_on(now, previous)on_power_off(now, previous)
Read state state.current()now.power / power_raw / modenow.room_temp_f / target_temp_fnow.fan / operating / connectednow.up_down_airflownow.left_right_airflownow.compressor_hz / input_power_w
Control AC ac.set_power(boolean)ac.set_mode("AUTO" | "HEAT" | "COOL" | "DRY" | "FAN")ac.set_target_temp_f(50..88)ac.set_fan("AUTO" | "QUIET" | 1..4)ac.set_up_down_airflow("AUTO" | "SWING" | "1".."5")ac.set_left_right_airflow(value)ac.set_swing(boolean)
Persistent values kv.get("key")kv.set("key", value)kv.delete("key")16 keys and 1 KiB total. Unchanged values do not rewrite flash.
Device and logs kiri.api_versionkiri.capabilities.*log.info(value)log.warn(value)
Safety limits 12 KiB script 32 KiB VM arena 4 actions per hook loop and action-storm protection