You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe:
I want to create switches with a reset timer and be stateful. For example, I create a switch with a reset delay of 1 hour. If Homebridge is restarted, when it restarts, it checks to see if the switch would have reset during the restart time.
If the switch would have reset, then set the switch state back to the reset value.
If the switch would not have reset, then determine how much time was left on the delay and set a new delay to turn off the switch.
Describe the solution you'd like:
When a stateful accessory is created with a reset timer, the start timestamp is saved. When Homebridge restarts, it checks the current time against the reset timer timestamp and creates a new delay timer with the remaining time. This may not be accurate to the millisecond, but should be accurate to the second.
The text was updated successfully, but these errors were encountered:
justjam2013
changed the title
Define an accessory as both stateful and have a reset timer
Allow accessory to both be stateful and have a reset timer
Jan 9, 2025
justjam2013
changed the title
Allow accessory to both be stateful and have a reset timer
Allow switches to both be stateful and have a reset timer
Jan 10, 2025
That would be awesome. I have a switch with a timer running for 48 hours and I always have to make sure it’s not active before even doing simple things like updating the plugin itself.
Is your feature request related to a problem? Please describe:
I want to create switches with a reset timer and be stateful. For example, I create a switch with a reset delay of 1 hour. If Homebridge is restarted, when it restarts, it checks to see if the switch would have reset during the restart time.
If the switch would have reset, then set the switch state back to the reset value.
If the switch would not have reset, then determine how much time was left on the delay and set a new delay to turn off the switch.
Describe the solution you'd like:
When a stateful accessory is created with a reset timer, the start timestamp is saved. When Homebridge restarts, it checks the current time against the reset timer timestamp and creates a new delay timer with the remaining time. This may not be accurate to the millisecond, but should be accurate to the second.
The text was updated successfully, but these errors were encountered: