benleb / ad-automoli

💡 Fully automatic light management based on conditions like motion, illuminance, humidity, and other clever features
https://github.com/benleb/ad-automoli
MIT License
110 stars 29 forks source link

Update automoli.py #91

Closed Allthebester closed 2 years ago

Allthebester commented 2 years ago

Fix for AppDaemon 4.2.0, update "entity" to "entity_id" for "set_state" and "listen_state"

ALutz273 commented 2 years ago

This commit works fine!

legovaer commented 2 years ago

Thanks a lot for this! As I only started using this app after the 4.2.0 release, I started to think that I was going mental. I've spent hours on reading the documentation and ended up on modifying the entire script.

Life saver!

gogui63 commented 2 years ago

@benleb Could you merge this PR ?

benleb commented 2 years ago

sorry, give me a few hours 😄✌️

gogui63 commented 2 years ago

@benleb Don't forget to make a new release when you have 5 minutes to get update on HACS side 😃 And thanks again for this HA plugin !

benleb commented 2 years ago

tomorrow! 👍

thundergreen commented 2 years ago

WOW! thanks I was really confused that my lights would randomly turn on and off after Appdaemon update :P Now I know the answer. Thanks a thousand times!