I am puzzled by how homekit bridge can trigger scripts / automations. I expose 2 scripts “good morning”, “good evening” and can see a switch in home. My goal is to voice control by “siri, good morning” or similar.
the thing is when I flip the switch manually, the script is not triggered.
What is the right way to run scripts OR automations over the homekit integration?
Does the script execute when you put the script (in HA) in edit mode and you run it (Run command in 3 dot menu of script editor, upper right)?
When executed in HK, the script should toggle on while running, then turn off when completed. Try to put a 2 second pause in one of your scripts to see if it indeed turns on and off when executed in HK
I imported a few scripts for my climate and lights. I rename them in HK so it’s easy to reference with Siri, and then I have to tell Siri “Run Sleep Climate”, “Run Sleep Lighting”, or “Run Sleepy Time” (the latter an automation running both the sleep and lighting scripts). Offhand, I think “Set [Script Name]” also works.