-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[evcc] Charge Plan Time is not converted to correct Timezone #17620
Comments
my time zone is UTC+2. Just to make sure, the plan should be displayed here right? I am using https://demo.evcc.io/ |
Yes, thats where the Plan Time is displayed. I just checked openhab and evcc system, which are each individual vms:
But strange that you see 6:30 in your openhab although you’re in UTC+2 as well. |
so the bug is not there anymore? |
on October 27th we will switch to normal aka winter time. I think thats why you see different times. It think there is an additional problem in your setup as well, as it does not show 5:30 correctly in summer time. Have you checked your system time setting and if some differnt time zone is selected in openhab maybe?
I think it is either a Problem of what the evcc addon is sending to evcc (maybe sending without TimeZone Info) or even an evcc problem. |
yeah I think you are right with the winter/summer time. So we can assume that the time is displayed correctly from the defined item, the only issue now is the time on EVCC |
I just tried the evcc api and i think its also not working correct:
so positiv offsets from Zulu time (aka UTC ) doesn’t work. But as the openhab Binding is able to send a plan to evcc it is using „Z" time or "-0:00“ offset, which is not a problem, but than the binding has to make sure to convert correctly from local time (5:30:00+02:00 in this case) to UTC. |
I raised an Issue at EVCC Link
|
Yeah, what you see is the problem. You set the time in openhab to 5:30+2:00 (which is 3:30Z aka UTC) that because the binding takes 5:30+2:00 and send it as 5:30Z which means 5:30+0:00, so is a total different time. |
Hi @lucaarn, Can you share your insights on this? |
@tmsch13 have you tried it after the fix they merged? |
The binding does not make use of the |
@Laith-Budairi Just tried the nighty EVCC Release with the Fix, positive time offset is now working fine. Remember as we will switch to Winter time this night the offset in Europe is now +01:00
But openhab binding is (as a expected) still not working correct: Set Item to 5:30h Log has the correct Time including Timezone: But I see 6:30h in EVCC. So openhab Binding is sending 5:30 UTC to EVCC which is 6:30+01:00 @lsiepel Let me know if i can test anything, would be glad to help. |
@tmsch13 I tried to fix it in the binding and I have a jar file, would you like to test it out and see if it works in your time zone? jar file: https://files.fm/u/wdfevpaa9g |
…#17620) Signed-off-by: Laith Budairi <laith38@yahoo.com>
…#17620) Signed-off-by: Laith Budairi <laith38@yahoo.com>
…#17620) Signed-off-by: Laith Budairi <laith.budairi@exalt.ps>
Just tested the jar and can confirm, that times are now send correctly to evcc. Thanks very much :) Nevertheless if i edit chardplan time or target SOC in EVCC, the binding seems not to get the new values... But thats maybe another bug and not as important for me as i just want to send plans from OH to EVCC |
Sorry for not responding. Recently I have some uni and private stuff to do. |
no worries, thank you |
good to hear! |
…#17620) (openhab#17640) Signed-off-by: Laith Budairi <laith.budairi@exalt.ps>
…#17620) (openhab#17640) Signed-off-by: Laith Budairi <laith.budairi@exalt.ps>
…#17620) (openhab#17640) Signed-off-by: Laith Budairi <laith.budairi@exalt.ps> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Expected Behavior
If i set the VehiclePlanTime in openhab I expect to see the same time in EVCC.
Current Behavior
If I set the VehiclePlanTime to eg "2024-10-24T05:30:00.636+02:00“ using Blockly

it converts to 7:30 in EVCC

The correspondig MQTT Topic (evcc/vehicles/Tesla_Y/plans/1/time) then shows 1729747800
which is
GMT: Thursday, 24. October 2024 05:30:00
My time zone: 24. Oktober 2024 07:30:00 [GMT+02:00]
By the way: If i change the Planed Time in EVCC, the MQTT Topic gets updated, but not the EVCC channel of the EVCC Binding in Openhab...
Steps to Reproduce (for Bugs)
Set the Plan Time via openhab to a not GMT Time and see the result in EVCC
Your Environment
Openhab: 4.2.1
EVCC: 0.130.2
The text was updated successfully, but these errors were encountered: