From 6d41024e76ac92d7b2b11b2492f57d900af8b933 Mon Sep 17 00:00:00 2001 From: twendt Date: Sat, 3 Jun 2017 07:12:41 +0200 Subject: [PATCH] Enocean Binary Sensor: Handle click of both rockers (#7770) --- homeassistant/components/binary_sensor/enocean.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/binary_sensor/enocean.py b/homeassistant/components/binary_sensor/enocean.py index 358abb434fd..36574450e4d 100644 --- a/homeassistant/components/binary_sensor/enocean.py +++ b/homeassistant/components/binary_sensor/enocean.py @@ -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,