hi i’m new to HA and i trying to trigger a script by changing the state of an input_boolean helper but i get it not to work…
this is my actual script:
alias: TV Programm off
sequence:
- wait_for_trigger:
- entity_id:
- input_boolean.tv_programm
to: "off"
trigger: state
continue_on_timeout: false
- action: script.tv_programm_beenden
data: {}
mode: single
the helper “input_boolean.tv_programm” is exposed to to HK and when i press the button in HK the script get not executed but i can see following in the log
TV Programm wurde ausgeschaltet ausgelöst durch HomeKit send command turn_off for TV Programm
You have a script that waits for a trigger and then executes a second script.
What executes the first script? If the answer is “nothing” then it will never work. An unexecuted script never performs its actions.
I suggest you consider replacing the first script with an automation that uses a State Trigger to detect when the input_boolean’s state changes to off (and then it executes your second script).
The differences between scenes, scripts and automations is summarized here: