InventoCasa / ha-advanced-blueprints

Advanced Blueprints combined with pyscript for extra useful automations
139 stars 33 forks source link

Bug? Script is turning off Devices when run by another automation #50

Open t0bse opened 5 months ago

t0bse commented 5 months ago

Hi, i tested the script with my LED light in the kitchen. It turned the light on, like i expected it, but the script is also turning the light off after it ran / no more PV power

see the screenshot, today morning (no pv power yet) the motion detector is turning on the light, but the script turns it off

image

stefan73 commented 4 months ago

That is by ddesign. The script will turn the appliance off, if there is not enough power. This is indepentend on why the automation got turned on. If you want to override this, you need to disable the automation. Then you / another automatism can control again till you enable the automation again.

zbuh commented 2 months ago

Also happens to me. The script should only turn off, when it was turn on previously by it. managing the automations, implies turning on/off with certain conditions(which ones? solar production ?) And when turning them off, are the controlled devices off or on??

This will lead to uncertain behaviours...