Replies: 11 comments
-
Unfortunately, it is not at all likely that this will be implemented for the Arduino Due because the library that we use for the ESP32 is not compatible with the Arduino Due. And even if there is a different library, it would probably not be too easy because NTP always returns time in UTC, i.e. without timezone as well as daylight savings information. This is all included in the ESP32 library. So unless you want to run your boiler in UTC, I don't see a chance to have NTP on the Due. It's probably easier to write a little script for BSB_LAN_custom.h that polls a website with the correct, timezone- and daylight-saving-adjusted time and then use that to set BSB-LAN's time as well as the heater's. However, this has to come from a contributor, I won't have the time to work on that. |
Beta Was this translation helpful? Give feedback.
-
Hello @fredlcore
Its working easy. |
Beta Was this translation helpful? Give feedback.
-
Great, thanks a lot, can the payload template be used universally or is this somewhere defined in your HA configuration? |
Beta Was this translation helpful? Give feedback.
-
I think it's universal. |
Beta Was this translation helpful? Give feedback.
-
But how does this script above know which parameter to send the time to and in which format? |
Beta Was this translation helpful? Give feedback.
-
I don't know if time is always parameter 1. It is advisable to find out in advance on the BSB LAN website in Heater Functions/Clock Time what number the time parameter has and what format it has, but I assume it will be HH:MM:SS and it also responds simply H:M:S With as seen from the automation. This works. |
Beta Was this translation helpful? Give feedback.
-
Ah, S1 is the parameter for time, right, yes, this should be the same with every BSB-LAN installation because we define it that way :). And now I also understand the |
Beta Was this translation helpful? Give feedback.
-
Originally I wanted it at midnight at 00:00, but that is not a suitable time for synchronization, because it is also the time of the date change, and it could happen that in BAXI it will be, for example, 23:55 and in HA already 00:00 , HA would send the midnight time and the old date would remain in BAXI. He would be a day behind. |
Beta Was this translation helpful? Give feedback.
-
Yes, for exactly the same reason I have also chosen 4am for the NTP example in the code snippet library in BSB-LAN :)... |
Beta Was this translation helpful? Give feedback.
-
So we arrived at the same thing independently, I didn't study your code for this. This could be an indication that it is correct. |
Beta Was this translation helpful? Give feedback.
-
It's certainly the safest time of the day to set it :)... |
Beta Was this translation helpful? Give feedback.
-
As I saw in the configuration file, NTP is only available for ESP so far. I will patiently wait for it to be available for DUE as well, it will be an interesting feature if it is able to correct and set this time correctly even with a different time in the boiler. For example, if the NTP time differs from the boiler time by 1-2 minutes, it will make an automatic adjustment in the boiler.
Beta Was this translation helpful? Give feedback.
All reactions