mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Enocean Binary Sensor: Handle click of both rockers (#7770)
This commit is contained in:
@@ -80,6 +80,12 @@ class EnOceanBinarySensor(enocean.EnOceanDevice, BinarySensorDevice):
|
|||||||
elif value2 == 0x10:
|
elif value2 == 0x10:
|
||||||
self.which = 1
|
self.which = 1
|
||||||
self.onoff = 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,
|
self.hass.bus.fire('button_pressed', {'id': self.dev_id,
|
||||||
'pushed': value,
|
'pushed': value,
|
||||||
'which': self.which,
|
'which': self.which,
|
||||||
|
Reference in New Issue
Block a user