forked from home-assistant/core
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user