Hello, is it possible to make an automation for specific devices to update the time of a zigbee device? I have many danfoss ally trv´s which i want to set the actual time once a month via an automation. I found a topic where someone did it via zha, which looks like this:
trv_update_timestamp:
alias: Update time for single TRV
sequence:
- service: zha.set_zigbee_cluster_attribute
data:
ieee: ‘{{ieee}}’
endpoint_id: 1
cluster_id: 10
attribute: 0
cluster_type: in
value: ‘{{(as_timestamp(utcnow()) - as_timestamp(“2000-01-01 00:00:00”)) | int()}}’
mode: single
What i want to achieve is, read the time of device and write the actual time to the specific trv.
->Read result of ‘genTime’: {“time”:733650766}
read (device ieee) endpoint=1, cluster= genTime, Attribute= time
2023-04-01 09:52:49Read result of 'genTime': {"time":733650766}
write (device ieee) endpoint=1, cluster= genTime, Attribute= time
2023-04-01 09:54:09Wrote '{"time":733650766}' to 'genTime'
I already found a topic at github, where someone else asked what i want to achieve, a long time ago. Has this ever been implemented or is it somehow possible?
Feature request: send cluster commands · Issue #3486 · Koenkk/zigbee2mqtt · GitHub