From cf35307ffb4963f6e2dbd7b157dc97df5d7535fa Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 28 Dec 2023 17:49:57 +0100 Subject: [PATCH] add all buttons to response --- BridgeEmulator/HueObjects/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BridgeEmulator/HueObjects/__init__.py b/BridgeEmulator/HueObjects/__init__.py index da4d03cd6..5c5e12fa8 100644 --- a/BridgeEmulator/HueObjects/__init__.py +++ b/BridgeEmulator/HueObjects/__init__.py @@ -1834,7 +1834,7 @@ def getDevice(self): "rtype": "temperature" }] result["type"] = "device" - elif self.modelid == "RWL022": + elif self.modelid == "RWL022" or self.modelid == "RWL021" or self.modelid == "RWL020": result = {"id": self.id_v2, "id_v1": "/sensors/" + self.id_v1, "type": "device"} result["product_data"] = {"model_id": self.modelid, "manufacturer_name": "Signify Netherlands B.V.", @@ -1909,7 +1909,7 @@ def getZigBee(self): return result def getButtons(self): result = [] - if self.modelid == "RWL022": + if self.modelid == "RWL022" or self.modelid == "RWL021" or self.modelid == "RWL020": for button in range(4): result.append({ "id": str(uuid.uuid5(uuid.NAMESPACE_URL, self.id_v2 + 'button' + str(button + 1))),