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 to address HA DB changes #16

Closed 0n3man closed 4 years ago

0n3man commented 4 years ago

The HA team removed the information this tool utilizes from the events table. The same information was also stored in the states table, so it was redundant. I changed the tool to utilize the data pulled from the states table. The change to support the MariaDB actually broke the sqlite3 implementation so I made a small change to address this. I also added a note to the README file, as you need to update the addon.json file so that the pymysql package is included in the dockers container or the code throws an exception.