mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Advantage Air fix logic for motion sensors (#58376)
* Check correct value for motion * Update fixture for motion * Small cleanup in fixture
This commit is contained in:
parent
d7c41c0b05
commit
71230f1f1c
@ -67,7 +67,7 @@ class AdvantageAirZoneMotion(AdvantageAirEntity, BinarySensorEntity):
|
||||
@property
|
||||
def is_on(self):
|
||||
"""Return if motion is detect."""
|
||||
return self._zone["motion"]
|
||||
return self._zone["motion"] == 20
|
||||
|
||||
|
||||
class AdvantageAirZoneMyZone(AdvantageAirEntity, BinarySensorEntity):
|
||||
|
@ -20,7 +20,7 @@
|
||||
"maxDamper": 100,
|
||||
"measuredTemp": 25,
|
||||
"minDamper": 0,
|
||||
"motion": 1,
|
||||
"motion": 20,
|
||||
"motionConfig": 2,
|
||||
"name": "Zone open with Sensor",
|
||||
"number": 1,
|
||||
@ -35,7 +35,7 @@
|
||||
"maxDamper": 100,
|
||||
"measuredTemp": 25,
|
||||
"minDamper": 0,
|
||||
"motion": 0,
|
||||
"motion": 21,
|
||||
"motionConfig": 2,
|
||||
"name": "Zone closed with Sensor",
|
||||
"number": 2,
|
||||
@ -50,8 +50,8 @@
|
||||
"maxDamper": 100,
|
||||
"measuredTemp": 25,
|
||||
"minDamper": 0,
|
||||
"motion": 1,
|
||||
"motionConfig": 1,
|
||||
"motion": 22,
|
||||
"motionConfig": 2,
|
||||
"name": "Zone 3",
|
||||
"number": 3,
|
||||
"rssi": 25,
|
||||
|
Loading…
x
Reference in New Issue
Block a user