excaliburpartners / OmniLinkBridge

MQTT bridge, web service API, time sync, and logging for HAI/Leviton OmniPro II controllers
GNU General Public License v3.0
41 stars 24 forks source link

Time sync and time zones? #58

Closed dlmorgan999 closed 6 months ago

dlmorgan999 commented 6 months ago

I've been using this plugin for a while now with Home Assistant, and it works great! Thanks so much for providing it. Having said that, I have one question. I have time sync enabled and it's working, but as mentioned in the documentation, it's setting the time to UTC rather than local. Is there any way to fix that - either in this app or on the Omni?

rwagoner commented 6 months ago

Are you using the Home Assistant Add-on or running the docker container?

dlmorgan999 commented 6 months ago

I'm running the Docker container. I only just discovered the Add-on earlier this morning.

rwagoner commented 6 months ago

Ensure the time in the docker container is the local time. The OmniLinkBridge readme shows mapping /etc/localtime:/etc/localtime:ro, which will set the docker container to the same timezone as your host.

dlmorgan999 commented 6 months ago

Ah - good call. I just checked, and time on my Docker VM is currently UTC. I don't know how I hadn't noticed that before, but thanks for the pointer!