KevinHA1
(Kevin Clocheret)
November 3, 2024, 5:00pm
1
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
Dujith
(Charles Evers)
November 3, 2024, 7:18pm
2
So in the ETS group you see the correct time? Can u post a screenshot?
What GIRA thermostat do you have?
KevinHA1
(Kevin Clocheret)
November 11, 2024, 6:18am
3
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??
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
farmio
(Matthias Alphart)
November 11, 2024, 6:40am
4
Yes, of course, the time displayed on group monitor is the local time of your HA installation when the telegram was received/sent.
KevinHA1
(Kevin Clocheret)
November 11, 2024, 7:14am
5
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
farmio
(Matthias Alphart)
November 11, 2024, 7:18am
6
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.
KevinHA1
(Kevin Clocheret)
November 11, 2024, 8:23am
7
I got this data on the bus:
Time data is 27 34 2D
farmio
(Matthias Alphart)
November 11, 2024, 8:40am
8
Set the DPT for the group address, then you can see the decoded value.
KevinHA1
(Kevin Clocheret)
November 11, 2024, 11:29am
9
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
farmio
(Matthias Alphart)
November 11, 2024, 12:57pm
10
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.
KevinHA1
(Kevin Clocheret)
November 11, 2024, 2:55pm
11
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
Setup homeassistant is:
Time in HA: sensor.time
in sensor.yaml:
KNX expose:
Thx
Kevin
farmio
(Matthias Alphart)
November 11, 2024, 3:37pm
12
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.
KevinHA1
(Kevin Clocheret)
November 11, 2024, 6:56pm
13
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:
@angusc In your configuration.yaml do you have this at the top.
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
In your developer tools again on template tab put this (this is every time function
{{ now() }}
{{ now().astimezone() }}
{{ utcnow().astimezone() }}
{{ now().now() }}
{{ …
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.
farmio
(Matthias Alphart)
November 11, 2024, 7:35pm
14
Docker? Have a look here Different Timezone in Docker and Container
Not sure what’s used for those templates though.