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

This commit is contained in:
twendt 2017-06-03 07:12:41 +02:00 committed by Paulus Schoutsen
parent 7d24efc690
commit 6d41024e76

View file

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