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:
Brett Adams 2021-10-25 22:14:41 +10:00 committed by GitHub
parent d7c41c0b05
commit 71230f1f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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):

View File

@ -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,