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

Failed to parse #4

Closed w1tw0lf closed 3 years ago

w1tw0lf commented 4 years ago

Getting following in logs:

2020-02-02 20:52:35.047437 INFO replay_lights: failed to parse ('{"domain": "light", "service": "turn_off", "service_data": {"entity_id": "light.family_room_lamp"}}',) 2020-02-02 20:52:35.049822 INFO replay_lights: failed to parse ('{"domain": "light", "service": "turn_off", "service_data": {"entity_id": "light.main_bedroom_lamp_left"}}',) 2020-02-02 20:52:35.129852 INFO replay_lights: failed to parse ('{"domain": "light", "service": "turn_off", "service_data": {"entity_id": "light.main_bedroom_lamp_right"}}',)

w1tw0lf commented 4 years ago

Think I might have solved this one.

Deleted the home-assistant_v2.db which was big and the error not coming up anymore.

Mohlsson commented 4 years ago

Great! I couldn't see what was wrong with the json you got from the db. What bothers me is that the time stamp must have been in the period (x days) where the events are read from so it is something that has been stored within the previous days. Get back if it happens again!