fsaris / home-assistant-zonneplan-one

Unofficial Zonneplan integration for Home Assistant
https://github.com/fsaris/home-assistant-zonneplan-one
MIT License
104 stars 17 forks source link

Entity "Schedule start and end" is not working anymore #110

Closed bobbomoon closed 4 months ago

bobbomoon commented 4 months ago

The entity that gives the "Charge laadpaal Charge point next schedule end" and "Charge laadpaal Charge point next schedule start" is not working anymore. I think this is started when the app was updated sinds april 12th. I have no technical background to give log files. I am running the latets HA version 2024.4.3 and operation system 12.2

fsaris commented 4 months ago

Are you using the latest version? https://github.com/fsaris/home-assistant-zonneplan-one/releases/tag/2024.4.1

Can you provide some debug logs?

bobbomoon commented 4 months ago

When I posted my issue the update was not avalable for me. But I just installed the updated version 2024.4.1. I get now an entity. Only the date that it gives is in the past for both entities "20 januari 1970 om 20:53"?

bobbomoon commented 4 months ago

some debug logs, if this helps?

2024-04-15 18:06:18.812 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Update Charge point state.attribute[charge schedules]: [{'start_time': 1713225600000, 'end_time': 1713229199000, 'suppress_home_battery': None}] 2024-04-15 18:06:18.812 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Charge point power: 0 [0] 2024-04-15 18:06:18.812 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Update Charge point power: 0 2024-04-15 18:06:18.813 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Charge point energy delivered session: 0 [0] 2024-04-15 18:06:18.813 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Update Charge point energy delivered session: 0 2024-04-15 18:06:18.813 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Charge point next schedule start: 1970-01-20 20:53:45.600000+01:00 [1713225600000] 2024-04-15 18:06:18.813 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Update Charge point next schedule start: 1970-01-20 20:53:45.600000+01:00 2024-04-15 18:06:18.813 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Charge point next schedule end: 1970-01-20 20:53:49.199000+01:00 [1713229199000] 2024-04-15 18:06:18.813 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Update Charge point next schedule end: 1970-01-20 20:53:49.199000+01:00 2024-04-15 18:06:18.813 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Battery state: Operative [Operative] 2024-04-15 18:06:18.813 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Update Battery state: Operative 2024-04-15 18:06:18.814 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Percentage: 50.0 [500] 2024-04-15 18:06:18.814 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Update Percentage: 50.0 2024-04-15 18:06:18.814 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Power: 0 [0] 2024-04-15 18:06:18.814 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Update Power: 0

fsaris commented 4 months ago

@bobbomoon @mvdzwaan can you check 2024.4.2b1 to check if the time is now correct?

mvdzwaan commented 4 months ago

I was not using those attributes, but installing now and checking

mvdzwaan commented 4 months ago

It's correct for me, I've scheduled it for 1:00, 2:00 and 3:00

start time : 1:00 end time : 3:59

bobbomoon commented 4 months ago

@fsaris Thanks. It works with this update!!

fsaris commented 4 months ago

part of release 2024.4.2