ParadoxAlarmInterface / pai

Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
https://gitter.im/paradox-alarm-interface
Eclipse Public License 2.0
356 stars 95 forks source link

Allow current Time to be pushed to panel as when the PAI starts #157

Closed 1nutty1 closed 4 years ago

1nutty1 commented 4 years ago

Being able to manually push the system time to the panel

My panel loses around 2 minutes every hour, I would like to be able to push the time to it every couple of hours to keep it relatively in sync with my Pi time. If it could be implemented like the startup process that would be great, even as an option in the config to send the time to the panel every X hours (0 - 168) where zero is never and 168 is 1 week...

Thanks. PS PAI works brilliantly on an SP65 panel with an IP150 on the latest firmware.

yozik04 commented 4 years ago

What if I will make an mqtt topic which would trigger resync. Then you can resync time any time from your home automation software (Openhab, HomeAssistant).

Or timer based approach is preferred?

1nutty1 commented 4 years ago

That would be awesome as I would be able to trigger it twice every day

radokristof commented 4 years ago

I would be also happy if there will be a function like this! My also lose a few mins after running for many weeks. Also I would be able to sync when DST happens.

yozik04 commented 4 years ago

or if drift is > some amount then resync.

yozik04 commented 4 years ago

Resolved in dev. Please verify.

yozik04 commented 4 years ago

I guess it works as two weeks have passed and no reply.