I am running a “good night” script from Google home. For some reason it will not run the full script after the new HA updates, so I need to add another automation to make this work.
I want this automation to turn off all lights in my house. For this to work, it will need it to work only after the script (script.lysavnatt) has been triggered manually, and second trigger when the motion detector has been triggered. After motion detector has been triggered it should activate the “sleep” scene after 10 minutes.
I will run the “good night” script from google home.
When the script (script.lysavnatt) has been activated it will activate a timer after the motion detector (binary_sensor.neo_coolcam_battery_powered_pir_sensor_sensor_2) has been triggered.
After 10 minutes a scene should be turned on (scene.all_lys_av).
I am not sure if I need an input boolean for this, or maybe there is a easier way? Anyone with a good idea?
I removed the harmony sequence also, still same problem.
This problem with scripts starting via Google Home came with the last big upgrade of HA. It worked perfect before, but when it was updated something changed. Thats why I was thinking just to make another automation to get around the problem
As a workaround, try getting GH to switch an input boolean on, use that going on to trigger the script and then turn the boolean off again ready for next time.
It is valid, albeit a bit pointless IMO. And given that it works fine when it is run from the UI my educated guess would be that GH is turning the script back off again part way through its run.