Enocean Binary Sensor: Handle click of both rockers (#7770)

This commit is contained in:
twendt authored and Paulus Schoutsen committed 2017-06-02 22:12:41 -07:00
1 parent 7d24efc690
commit 6d41024e76
1 file changed
+6
@@ -80,6 +80,12 @@ class EnOceanBinarySensor(enocean.EnOceanDevice, BinarySensorDevice):
elif value2 == 0x10:
self.which = 1
self.onoff = 1
elif value2 == 0x37:
self.which = 10
self.onoff = 0
elif value2 == 0x15:
self.which = 10
self.onoff = 1
self.hass.bus.fire('button_pressed', {'id': self.dev_id,
'pushed': value,
'which': self.which,