vincentwolsink / home_assistant_micronova_agua_iot

Home Assistant integration controlling heating devices connected via the Agua IOT platform of Micronova
Apache License 2.0
24 stars 15 forks source link

Set clock time #116

Closed inode- closed 6 months ago

inode- commented 6 months ago

Hello,

it would very useful to be able also to set the clock time of them. The stove doesn't have a mechanism to syncronize the clock automatically, but it's an operation that can be done in the app.

It would be useful to me to be able to automatize this operation via HA.

Thank you

vincentwolsink commented 6 months ago

Hi @inode-,

Yes also my stove clock drifts quite a lot. 😄 Since Home Assistant doesn't seem to support a UI for doing date/time entries, what I can do is add a service to the integration to change time/date on the stove. I can also add a generic "sync clock" service that will sync the stove time/date to the Home Assistant one. Which you can then automatically call every night or so, to keep the stove clock in sync.

inode- commented 6 months ago

Sync clock service will be lovable!

vincentwolsink commented 6 months ago

This change implied a bit more changes than anticipated. But I got there.

I added a service aguaiot.sync_clock. Make sure to target it to the main climate entity for your stove (so not to an extra fan or canalization entity).

vincentwolsink commented 6 months ago

Let me know if it works for you @inode- 🙂