Skip to content

Commit

Permalink
Fix LOWBAT for 3 devices, refs #230
Browse files Browse the repository at this point in the history
  • Loading branch information
danielperna84 committed Jun 25, 2019
1 parent f6733e6 commit 94a7db2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyhomematic/devicetypes/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
"GAS_POWER": [1],
"ENERGY_COUNTER": [1],
"POWER": [1]})
self.ATTRIBUTENODE.update({"LOWBAT": [0]})

def get_gas_counter(self, channel=None):
"""Return gas counter."""
Expand Down Expand Up @@ -250,6 +251,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)

self.EVENTNODE.update({"PRESS_SHORT": self.ELEMENT})
self.ATTRIBUTENODE.update({"LOWBAT": [0]})


class WiredSensor(SensorHmW, HelperWired):
Expand Down Expand Up @@ -475,6 +477,7 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
# init metadata
self.BINARYNODE.update({"MOTION": [3]})
self.SENSORNODE.update({"BRIGHTNESS": [3]})
self.ATTRIBUTENODE.update({"LOWBAT": [0]})

def is_motion(self, channel=None):
""" Return True if motion is detected """
Expand Down

0 comments on commit 94a7db2

Please sign in to comment.