Hi,
I am using this plugin to turn on some lights behind my PC, if the pc is switched on. Currently, I am using the following configuration:
{
"id": "PC_Status_Sensor",
"name": "PC Status Sensor",
"type": "occupancy",
"autoRelease": true,
"autoReleaseTime": 10000
}
Every 5 seconds I perform a GET request to turn on the sensor from my pc like so:
http://homebridge.local:51828/?accessoryId=PC_Status_Sensor&state=true
This works great! However, the autoReleaseTime is triggered after every request, causing the lights to turn off after 10 seconds, even if the sensor has received a second request that set's it's state to true.
I would expect that the autoRelease timer is reset/restarted, when a new request comes in and the state is true.
To not break existing setups, we could introduce another configuration for the autoRelease, maybe 'resetAutoReleaseOnDetection' or similar.
What do you think?
Hi,
I am using this plugin to turn on some lights behind my PC, if the pc is switched on. Currently, I am using the following configuration:
{ "id": "PC_Status_Sensor", "name": "PC Status Sensor", "type": "occupancy", "autoRelease": true, "autoReleaseTime": 10000 }Every 5 seconds I perform a GET request to turn on the sensor from my pc like so:
http://homebridge.local:51828/?accessoryId=PC_Status_Sensor&state=true
This works great! However, the autoReleaseTime is triggered after every request, causing the lights to turn off after 10 seconds, even if the sensor has received a second request that set's it's state to true.
I would expect that the autoRelease timer is reset/restarted, when a new request comes in and the state is true.
To not break existing setups, we could introduce another configuration for the autoRelease, maybe 'resetAutoReleaseOnDetection' or similar.
What do you think?