Skip to content

Commit

Permalink
add all buttons to response
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark committed Dec 28, 2023
1 parent a4447a2 commit cf35307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BridgeEmulator/HueObjects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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))),
Expand Down

0 comments on commit cf35307

Please sign in to comment.