Update hardware list and mode hardware ID to fw_version

This commit is contained in:
Thomas Lovén 2022-10-16 21:36:14 +02:00
parent fd3c2db642
commit 85190aa9dd
3 changed files with 7 additions and 10 deletions

View File

@ -48,10 +48,10 @@ class PlejdLight(LightEntity, CoordinatorEntity):
"identifiers": {(DOMAIN, self.device.BLE_address)}, "identifiers": {(DOMAIN, self.device.BLE_address)},
"name": self.device.name, "name": self.device.name,
"manufacturer": "Plejd", "manufacturer": "Plejd",
"model": f"{self.device.model} ({self.device.hardwareId})", "model": {self.device.model},
#"connections": ???, #"connections": ???,
"suggested_area": self.device.room, "suggested_area": self.device.room,
"sw_version": self.device.firmware, "sw_version": f"{self.device.firmware} ({self.device.hardwareId})",
} }
@property @property

View File

@ -19,18 +19,15 @@ HARDWARE_TYPES = {
"6": Device("WPH-01", SWITCH, False), "6": Device("WPH-01", SWITCH, False),
"7": Device("REL-01", SWITCH, False), "7": Device("REL-01", SWITCH, False),
"8": Device("SPR-01", SWITCH, False), "8": Device("SPR-01", SWITCH, False),
"9": Device("-unknown-", LIGHT, False),
"10": Device("WRT-01", SWITCH, False), "10": Device("WRT-01", SWITCH, False),
"11": Device("DIM-01", LIGHT, True), "11": Device("DIM-01", LIGHT, True),
"12": Device("-unknown-", LIGHT, False),
"13": Device("Generic", LIGHT, False), "13": Device("Generic", LIGHT, False),
"14": Device("DIM-01", LIGHT, True), "14": Device("DIM-01", LIGHT, True),
"15": Device("-unknown-", LIGHT, False), "15": Device("DIM-02", LIGHT, True),
"16": Device("-unknown-", LIGHT, False), "17": Device("REL-01-2P", SWITCH, False),
"17": Device("REL-01", SWITCH, False),
"18": Device("REL-02", SWITCH, False), "18": Device("REL-02", SWITCH, False),
"19": Device("-unknown-", LIGHT, False),
"20": Device("SPR-01", SWITCH, False), "20": Device("SPR-01", SWITCH, False),
"36": Device("LED-75", LIGHT, True),
} }
class PlejdDevice: class PlejdDevice:

View File

@ -48,10 +48,10 @@ class PlejdSwitch(SwitchEntity, CoordinatorEntity):
"identifiers": {(DOMAIN, self.device.BLE_address)}, "identifiers": {(DOMAIN, self.device.BLE_address)},
"name": self.device.name, "name": self.device.name,
"manufacturer": "Plejd", "manufacturer": "Plejd",
"model": f"{self.device.model} ({self.device.hardwareId})", "model": self.device.model,
#"connections": ???, #"connections": ???,
"suggested_area": self.device.room, "suggested_area": self.device.room,
"sw_version": self.device.firmware, "sw_version": f"{self.device.firmware} ({self.device.hardwareId})",
} }
@property @property