KNX time always GMT on devices

Hi,
I am able to send the time to KNX using the expose function.
The correct time is visible when you log the KNX telegrams and when you display the time in HA frontend.

But the time on my GIRA Thermostat is displayed in GMT time.
I am in GMT+1 of +2.

Does anyone have an idea to resolve this?

Thx
Kevin

So in the ETS group you see the correct time? Can u post a screenshot?
What GIRA thermostat do you have?

yes that is correct. It is now 7:04 on my PC. When I change my PC time, this time remains correct, so KNX Group Monitor reads the correct time. Maybe I uses the HA time to display the results and not the time on KNX bus??

image

I have the Gira multi-function plus 180202
https://partner.gira.com/nl_NL/service/download/index.html?id=2298

Thx for your help
Kevin

Yes, of course, the time displayed on group monitor is the local time of your HA installation when the telegram was received/sent.

So how can we read the time that is on the KNX bus to check what is being send to the bus?

My HA config is GMT+1 (DST off)

Current time: 8:14
Time on my Gira Thermostat: 7:14

Thx
Kevin

If you use expose it should send the same time (system time of your HA host).
But you can just look at the group monitor payload it sends. Even if you have any other time source than HA it should display there - given you have uploaded your project file.

I got this data on the bus:


Time data is 27 34 2D

Set the DPT for the group address, then you can see the decoded value.

Hi Farmio,
Found out how to view the time in the telegram. Time is send correct, but on my Gira it is displayed as 11:26.
Any suggestions?
Thx
Kevin
image

That’s not the decoded value - it’s the same as in the list. To have it decoded you’d need to set it in ETS.

Decoded value here would be 11:26. So I guess your system time is set incorrectly.

What do you need to setup in ETS?
DPT?
I have changed this in the group address properties of my Gira Thermostat from not specified to Time 10.001
image

Setup homeassistant is:
image

Time in HA: sensor.time
image

in sensor.yaml:
image

KNX expose:
image

Thx
Kevin

Sorry, I’m not familiar with that ETS version. The ones I know (5 and 6) set DPTs automatically.

As I said, expose time uses system time (datetime.datetime.now()), so make sure the operating systems time is correct.

I am running HA on a docker container on my NAS.
Apparently the system time of HA comes from the underlying hardware. So that would be Docker Container and NAS.
I checked and settings there are correct.
I displayed the time in HA with this info:

So now() is the correct time.
Is that one used to send to the KNX?

So I don’t understand why now().astimezone() shows the wrong time.

Docker? Have a look here Different Timezone in Docker and Container

Not sure what’s used for those templates though.