Hello,
After some tinkering, I managed to send datetime updates to the Vimar By-me bus via KNX. While searching, I found a few unresolved posts, so I’m sharing a package here in case someone else needs it.
The package should be pasted into a file at packages/knx/datetime.yaml, and in the main configuration, this should be added in case you are not using packages:
After installing the package, it is enough to create an automation that calls the send_knx_datetime service every X hours, and the time will be updated automatically. My Vimar KNX controller used to run a few minutes ahead after a few weeks from the last adjustment.
Sure, but I had no luck with that configuration, probably the Vimar knx implementation is not so standard , I had to log the packets sent from the Vimar display to the bus to intercept the payload and recreate it on homeassistant.
From what I have logged, the last parameter can be either 0x00 or 0x80. On the Vimar panel, it refers to a master and a slave. Additionally, the second-to-last value can be sent as either 0x00 or 0x40, but I haven’t figured out what this corresponds to. I noticed, however, that it works fine when always sending 0x00.
Oh, just fyi, you can get current time in a template. https://www.home-assistant.io/blog/2017/10/15/templating-date-time/
So you could omit the first helper entity. And if you use this in the scripts knx.send payload, you may even omit the other template entity.
Using an automation instead of script - with time pattern trigger - would make a nice start for a blueprint for other Vimar users