Mohlsson / ReplayLightsHistory

AppDaemon App for Home Assistant to replay light switch history when no one is home.
Apache License 2.0
29 stars 5 forks source link

Update replay_lights.py #10

Closed 0n3man closed 4 years ago

0n3man commented 4 years ago

Added a parameter for switches to be excluded from the replay. I just added a switch on my garage and a camera that gets enabled when the alarm is enabled. I didn't want these include in the replay. I also added some shelly switches to my home that ended up generating events without a new state and caused an exception, so I added code to just ignore these records in the database.