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
I have two Aqara P1 sensors connected via a flashed M2.
No matter what I set the Detection Interval to in the Aqara App in Home Assistant I see under the sensor attributes "Occupancy Timeout 90"
If I alter the line in binary_sensor.py self._default_delay = self.device.get(CONF_OCCUPANCY_TIMEOUT, 90) to say 30 and reload the integration then the attribute reports 30 instead of 90.
Should this read the setting from the Aqara Hub set via the App or is this setting OCCUPANCY_TIMEOUT not the same as "Detection Interval"?
If different it would be nice to have a way to set it from Home Assistant without having to alter the code that would get written over with each update.
Note that with in Homeassistant the same sensor connected via Homekit turns off after whatever the "Detection Interval" is set to, so if I set it to 10s then the sensor turns off in 10s.
In Aqara Gateway it turns off after OCCUPANCY_TIMEOUT, so if I set that to 30s in binary_sensor.py it turns off in 30s. I assume it would be the longer of the two being used so ideally OCCUPANCY_TIMEOUT should be set to "Detection Interval" which is what the Homekit version must be doing.
The text was updated successfully, but these errors were encountered:
I since see that this is a repeat of: #281 (comment)
So I can set the value in configuration.yaml which is good, but still would be better if Aqaragateway could query the setting from the device.
Happy to help test this if required.
I have two Aqara P1 sensors connected via a flashed M2.
No matter what I set the Detection Interval to in the Aqara App in Home Assistant I see under the sensor attributes "Occupancy Timeout 90"
If I alter the line in binary_sensor.py
self._default_delay = self.device.get(CONF_OCCUPANCY_TIMEOUT, 90)
to say 30 and reload the integration then the attribute reports 30 instead of 90.Should this read the setting from the Aqara Hub set via the App or is this setting OCCUPANCY_TIMEOUT not the same as "Detection Interval"?
If different it would be nice to have a way to set it from Home Assistant without having to alter the code that would get written over with each update.
Note that with in Homeassistant the same sensor connected via Homekit turns off after whatever the "Detection Interval" is set to, so if I set it to 10s then the sensor turns off in 10s.
In Aqara Gateway it turns off after OCCUPANCY_TIMEOUT, so if I set that to 30s in binary_sensor.py it turns off in 30s. I assume it would be the longer of the two being used so ideally OCCUPANCY_TIMEOUT should be set to "Detection Interval" which is what the Homekit version must be doing.
The text was updated successfully, but these errors were encountered: