-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to use TimeSynchronizationCluster (CON-1501) #1233
Comments
The UTCTime attribute is managed by AttributeAccessInterface instead of esp-matter data model so you cannot get its value with the APIs provided in esp-matter component, Please refer to this, the unix UTC time can be get |
Hey wqx6, Thank you for you feedback. I tried, but my time doesn't get synced. I can't find what i am missing. Do you have a "full example" please ? I believe it would make a very good example. Regards |
Using this cluster is very painful. Just turn on the standard NTP client via menuconfig which is 1000 times easier. |
What commissioner are you using? I tested the time-sync cluster with the following steps:
|
Hey, thank you for your feedback. @wqx6 indeed i finally managed to get time at commissioning. My issue is after restart i lose time and i didn't find to request it unless i recommission the device. Apple set the utc time at commissioning but not trusted source. @jonsmirl i tried standard ntp, but it doesn't get sync if connected to thread/matter network of apple. I juste get timeouts. Have you done it with apple ? Thank you |
Standard NTP will ignore Matter and use the existing NTP protocol. Use pool.ntp.org which will attach to the nearest public server. Of course this only works from a network with Internet connectivity. If you have an Apple Home device you have to have Internet connectivity since it also needs it. This might be a thread problem, does thread route onto the Internet by default? For sure it is possible for Thread to route onto the Internet but I don't know if that is capability is turned on. All of the Matter devices I work with are wifi based. |
Since thread is IPv6 only I believe you need to use 2.pool.ntp.org or time.google.com. pool.ntp.org is timing out because it does not support IPv6 clients.
|
Hello, If you need help to use the time synchronization cluster, take a look here: #1269 I made it working. There is just a little bug but it is not very important:
|
Describe the question/query that you have
Hi, i am currently trying to use the TimeSynchronizationCluster to get time.
I am using a device connected to a HomePod which should support time synchronization.
So far i have tried to add this code based on light switch example:
And i try to read the value using:
which throw an error
esp_matter_core: get_val(1144): Attribute is not managed by esp matter data model
So i am pretty sure i am not using properly.
I wanted to use CLUSTER_FLAG_CLIENT flag only on the cluster, but i saw in code that it doesn't create in this case utc_time and granularity attributes which are mandatory based on matter spec 1.3.
Who can i get synchronized time ? I think it's missing an example.
Thank you for your kind help.
Additional context
...
The text was updated successfully, but these errors were encountered: