Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show battery level in device list #44

Closed
soren-petersen opened this issue May 9, 2024 · 52 comments
Closed

Show battery level in device list #44

soren-petersen opened this issue May 9, 2024 · 52 comments

Comments

@soren-petersen
Copy link

Hi,

Thank you for all the effort you have (and are) putting into making this integration available to all of us! It is working like a charm.

One thing that I have been missing is the ability to see the battery level for remotes etc. in the device list. I suspect the reason it does not show up is that the "Battery" entity on dirigera_platform devices is reported under "Sensors" rather than under "Diagnostic". Is this something that would be possible to change without too much effort?

Again, thank you for providing this integration!

Best regards,
Soren

@soren-petersen soren-petersen changed the title Show battery in device list Show battery level in device list May 9, 2024
@sanjoyg
Copy link
Owner

sanjoyg commented May 10, 2024

Actively working on including that in the next release

@sanjoyg
Copy link
Owner

sanjoyg commented May 10, 2024

Please try the latest release

@vulcanoid1975
Copy link

vulcanoid1975 commented May 11, 2024

Hi,

I have one door sensor with battery, I have other sensors from IKEA but because there was no information on the battery state I was using Z2MQTT instead.

Since this release I do have a state for this sensor, but it looks like this:

image

I know the state of the battery isn't 0 because:

image

Now, beside the Door Sensor, I do have two blinds that also use battery, and the new integration shows this:

image

And when the battery icon is clicked I can see this:

image

What I would suggest is to show the percentage along with the icon and when you click the icon we can go to the history as per the sensor:

image

Here is the log from my side. I hope it helps ...

And again, Thank You for making this integration possible!

2024-05-11 09:06:53.387 INFO (SyncWorker_8) [custom_components.dirigera_platform] === START Devices JSON ===
2024-05-11 09:06:53.388 INFO (SyncWorker_8) [custom_components.dirigera_platform] --------------
2024-05-11 09:06:53.462 DEBUG (MainThread) [custom_components.dirigera_platform] update called Door Sensor Outside
2024-05-11 09:06:53.462 DEBUG (MainThread) [custom_components.dirigera_platform] update called Door Sensor Outside
2024-05-11 09:06:53.462 DEBUG (MainThread) [custom_components.dirigera_platform] update called Entrance Door Sensor
2024-05-11 09:06:53.462 DEBUG (MainThread) [custom_components.dirigera_platform] update called Entrance Door Sensor
2024-05-11 09:06:53.496 DEBUG (SyncWorker_7) [custom_components.dirigera_platform] Got can_receive in state
2024-05-11 09:06:53.496 DEBUG (SyncWorker_7) [custom_components.dirigera_platform] ['customName', 'isOn', 'lightLevel']
2024-05-11 09:06:53.496 DEBUG (SyncWorker_7) [custom_components.dirigera_platform] supported color mode set to:
2024-05-11 09:06:53.496 DEBUG (SyncWorker_7) [custom_components.dirigera_platform] [<ColorMode.BRIGHTNESS: 'brightness'>]
2024-05-11 09:06:53.496 DEBUG (SyncWorker_7) [custom_components.dirigera_platform] color mode set to:
2024-05-11 09:06:53.496 DEBUG (SyncWorker_7) [custom_components.dirigera_platform] brightness
2024-05-11 09:06:56.784 DEBUG (Thread-4) [custom_components.dirigera_platform] rcvd message : {"id":"d24e59cb-f346-4ed3-bca2-e67587636c24","time":"2024-05-11T08:06:56.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"e67bab52-7f2f-4e8e-b6a7-0c10aa06ca1e_1","type":"sensor","deviceType":"environmentSensor","createdAt":"2024-04-05T15:06:00.000Z","isReachable":true,"lastSeen":"2024-05-11T09:06:56.000Z","attributes":{"currentPM25":7},"remoteLinks":[]}}
2024-05-11 09:06:56.784 DEBUG (Thread-4) [custom_components.dirigera_platform] device type of message environmentSensor
2024-05-11 09:06:56.981 DEBUG (Thread-4) [custom_components.dirigera_platform] rcvd message : {"id":"65da41f5-7409-4966-9d35-ce323debc6db","time":"2024-05-11T08:06:56.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"e67bab52-7f2f-4e8e-b6a7-0c10aa06ca1e_1","type":"sensor","deviceType":"environmentSensor","createdAt":"2024-04-05T15:06:00.000Z","isReachable":true,"lastSeen":"2024-05-11T09:06:56.000Z","attributes":{"vocIndex":152},"remoteLinks":[]}}
2024-05-11 09:06:56.982 DEBUG (Thread-4) [custom_components.dirigera_platform] device type of message environmentSensor
2024-05-11 09:06:58.885 DEBUG (Thread-4) [custom_components.dirigera_platform] rcvd message : {"id":"02ec2485-af32-41db-9c77-89a4e1d36a3d","time":"2024-05-11T08:06:58.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"68c6621d-a4dc-428f-8135-642ccf743c8c_1","type":"sensor","deviceType":"environmentSensor","createdAt":"2024-04-13T10:29:14.000Z","isReachable":true,"lastSeen":"2024-05-11T09:06:58.000Z","attributes":{"currentRH":60},"remoteLinks":[]}}
2024-05-11 09:06:58.886 DEBUG (Thread-4) [custom_components.dirigera_platform] device type of message environmentSensor
2024-05-11 09:06:59.732 DEBUG (Thread-4) [custom_components.dirigera_platform] rcvd message : {"id":"0dde96da-29a7-40b3-8757-4f3fd3446e62","time":"2024-05-11T08:06:59.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"e51a9e3c-0e0b-450d-a34d-f741cf6a0923_1","type":"sensor","deviceType":"environmentSensor","createdAt":"2024-04-05T16:31:37.000Z","isReachable":true,"lastSeen":"2024-05-11T09:06:59.000Z","attributes":{"vocIndex":126},"remoteLinks":[]}}
2024-05-11 09:06:59.732 DEBUG (Thread-4) [custom_components.dirigera_platform] device type of message environmentSensor
2024-05-11 09:07:01.731 DEBUG (Thread-4) [custom_components.dirigera_platform] rcvd message : {"id":"c9f1b599-1799-495b-9243-67162d68984d","time":"2024-05-11T08:07:01.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"e67bab52-7f2f-4e8e-b6a7-0c10aa06ca1e_1","type":"sensor","deviceType":"environmentSensor","createdAt":"2024-04-05T15:06:00.000Z","isReachable":true,"lastSeen":"2024-05-11T09:07:01.000Z","attributes":{"vocIndex":151},"remoteLinks":[]}}
2024-05-11 09:07:01.731 DEBUG (Thread-4) [custom_components.dirigera_platform] device type of message environmentSensor
2024-05-11 09:07:01.837 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.outside_set_lights is taking over 10 seconds
2024-05-11 09:07:02.389 INFO (SyncWorker_8) [custom_components.dirigera_platform] [{'id': 'f299b378-939d-491f-9ba8-f0c724fbc6bf_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-13T10:30:02.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T09:06:42.000Z', 'attributes': {'customName': 'Sensor Kitchen', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5F0A5A', 'productCode': 'E2112', 'currentTemperature': 24, 'currentRH': 60, 'currentPM25': 8, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 61, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '3f59f95c-4277-409f-833e-8d09f9e3a109_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T13:58:54.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T02:56:09.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Kitchen Back Cupboard', 'model': 'ORMANAS LED Strip', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.10', 'hardwareVersion': '1', 'serialNumber': '287681FFFE0AE18A', 'productCode': 'L2112', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 357.5445556640625, 'colorSaturation': 0.41732283464566927, 'colorTemperature': 2801, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e67bab52-7f2f-4e8e-b6a7-0c10aa06ca1e_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T15:06:00.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T09:07:01.000Z', 'attributes': {'customName': 'Sensor Office', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE642195', 'productCode': 'E2112', 'currentTemperature': 24, 'currentRH': 56, 'currentPM25': 7, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 151, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'bb08b138-ac1d-4605-b816-731481dea270', 'name': 'Office', 'color': 'ikea_brown_no_41', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'ac63495c-4f46-4ba6-b3e9-6e0706af3c67_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-13T21:06:58.000Z', 'isReachable': False, 'lastSeen': '2024-05-08T23:05:15.000Z', 'attributes': {'customName': 'Light 8', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5EB0A4', 'productCode': 'LED1935C3', 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 20, 'startUpCurrentLevel': -1, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'f44a079f-8974-4a2b-b4ad-a3a587b650c4', 'name': 'Outside Set Lights', 'icon': 'lighting_nightstand_light'}], 'remoteLinks': [], 'isHidden': False}, {'id': '41557dbf-10ee-408f-a81c-1b6547e81732_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-06T03:00:15.000Z', 'isReachable': True, 'lastSeen': '2024-05-10T19:36:44.000Z', 'customIcon': 'lighting_floor_lamp', 'attributes': {'customName': 'TV Bedroom Light', 'model': 'TRADFRI bulb E27 CWS globe 806lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'serialNumber': '3C2EF5FFFEEE373B', 'productCode': 'LED2109G6', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 34.9969482421875, 'colorSaturation': 0.7992125984251969, 'colorTemperature': 2202, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'c8eced1e-2dba-4be8-9c19-687f7744a0d4_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-13T22:41:47.000Z', 'isReachable': False, 'lastSeen': '2024-05-08T23:05:19.000Z', 'attributes': {'customName': 'Light 10', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE11E8A2', 'productCode': 'LED1935C3', 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 20, 'startUpCurrentLevel': -1, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'f44a079f-8974-4a2b-b4ad-a3a587b650c4', 'name': 'Outside Set Lights', 'icon': 'lighting_nightstand_light'}], 'remoteLinks': [], 'isHidden': False}, {'id': 'e51a9e3c-0e0b-450d-a34d-f741cf6a0923_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T16:31:37.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T09:06:59.000Z', 'attributes': {'customName': 'Sensor Bedroom ', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5F0C3A', 'productCode': 'E2112', 'currentTemperature': 24, 'currentRH': 63, 'currentPM25': 8, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 126, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d406c8a-92c8-4139-9860-c94755d33bd6_1', 'type': 'blinds', 'deviceType': 'blinds', 'createdAt': '2024-04-09T20:10:25.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T02:57:09.000Z', 'attributes': {'customName': 'Bedroom Blind Left', 'model': 'FYRTUR block-out roller blind', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.13', 'hardwareVersion': '1', 'serialNumber': 'BC026EFFFE3B4604', 'productCode': 'E1757-140', 'batteryPercentage': 96, 'blindsTargetLevel': 100, 'blindsCurrentLevel': 100, 'blindsState': 'stopped', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'blindsCurrentLevel', 'blindsTargetLevel', 'blindsState']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '43b1d2ce-f0a8-44d8-a265-9399d800be54_1', 'relationId': '43b1d2ce-f0a8-44d8-a265-9399d800be54', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-09T19:56:20.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T02:51:35.000Z', 'customIcon': 'products_led_bulb', 'attributes': {'customName': 'Outside Lights', 'model': 'lumi.switch.l2aeu1', 'manufacturer': 'LUMI', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '54EF441000AE3A7D', 'isOn': False, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '43b1d2ce-f0a8-44d8-a265-9399d800be54_2', 'relationId': '43b1d2ce-f0a8-44d8-a265-9399d800be54', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-09T19:56:20.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T02:51:35.000Z', 'customIcon': 'lighting_fan', 'attributes': {'customName': 'Media Room Fan', 'model': 'lumi.switch.l2aeu1', 'manufacturer': 'LUMI', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '54EF441000AE3A7D', 'isOn': False, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'feab0316-070b-4a2e-8e97-4c0c354a1636_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T22:43:50.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T08:51:18.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Back Cupboard Down', 'model': 'lumi.light.acn132', 'manufacturer': 'Aqara', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '', 'productCode': '', 'colorHue': 239.660885889077, 'colorSaturation': 1, 'colorTemperature': 3984, 'colorTemperatureMin': 6535, 'colorTemperatureMax': 2702, 'startupTemperature': 4000, 'colorMode': 'temperature', 'lightLevel': 100, 'isOn': False, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'colorTemperature', 'colorHue', 'colorSaturation', 'lightLevel', 'isOn']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9f64b431-4485-4e14-83f1-4693c0dafc93_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-04-13T12:58:10.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T06:15:21.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Door Sensor Outside', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE5287CE', 'productCode': 'E2013', 'batteryPercentage': 84, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'c2a5fc20-d126-4e36-a888-dac432e29351_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T22:39:55.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T02:56:10.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Front Cupboard Down', 'model': 'lumi.light.acn132', 'manufacturer': 'Aqara', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '', 'productCode': '', 'colorHue': 239.660885889077, 'colorSaturation': 1, 'colorTemperature': 3984, 'colorTemperatureMin': 6535, 'colorTemperatureMax': 2702, 'startupTemperature': 4000, 'colorMode': 'temperature', 'lightLevel': 100, 'isOn': False, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'colorTemperature', 'colorHue', 'colorSaturation', 'lightLevel', 'isOn']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'f8212acf-24d3-42d7-847b-1c305c470462_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-13T21:07:45.000Z', 'isReachable': False, 'lastSeen': '2024-05-08T23:05:15.000Z', 'attributes': {'customName': 'Light 9', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE06D606', 'productCode': 'LED1935C3', 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 20, 'startUpCurrentLevel': -1, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'f44a079f-8974-4a2b-b4ad-a3a587b650c4', 'name': 'Outside Set Lights', 'icon': 'lighting_nightstand_light'}], 'remoteLinks': [], 'isHidden': False}, {'id': '475cc495-4445-4247-ad3e-ddfa149a9cd1_1', 'type': 'blinds', 'deviceType': 'blinds', 'createdAt': '2024-04-05T14:39:51.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T02:56:54.000Z', 'attributes': {'customName': 'Bedroom Blind Right', 'model': 'FYRTUR block-out roller blind', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.13', 'hardwareVersion': '1', 'serialNumber': '6C5CB1FFFE78FA80', 'productCode': 'E1757-140', 'batteryPercentage': 93, 'blindsTargetLevel': 100, 'blindsCurrentLevel': 100, 'blindsState': 'stopped', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'blindsCurrentLevel', 'blindsTargetLevel', 'blindsState']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '49267ed9-cd73-443d-b384-c23c750740a3_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-04-13T13:43:04.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T06:46:48.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Entrance Door Sensor', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE4AC4AE', 'productCode': 'E2013', 'batteryPercentage': 43, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '421d55b1-65fd-4545-a33f-0de44bad173b', 'name': 'Hallway', 'color': 'ikea_yellow_no_24', 'icon': 'rooms_book_case'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '68c6621d-a4dc-428f-8135-642ccf743c8c_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-13T10:29:14.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T09:06:58.000Z', 'attributes': {'customName': 'Sensor Bathroom', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': 'A46DD4FFFE4D1887', 'productCode': 'E2112', 'currentTemperature': 24, 'currentRH': 60, 'currentPM25': 6, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 78, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'cbc8a34a-a0cf-4084-91c1-a9072d3c249e', 'name': 'Bathroom', 'color': 'ikea_pink_no_8', 'icon': 'rooms_bathtub'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'f5878eb5-8acf-4d3e-b627-948655a71375_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T13:55:13.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T02:56:09.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Kitchen Front Cupboard', 'model': 'ORMANAS LED Strip', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.10', 'hardwareVersion': '1', 'serialNumber': '287681FFFE7FFB0C', 'productCode': 'L2112', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 30.227349000635456, 'colorSaturation': 0.6369916039373907, 'colorTemperature': 2801, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'color', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '5817d190-530e-4207-a359-b70321c9eecb_1', 'relationId': '5817d190-530e-4207-a359-b70321c9eecb', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2023-12-15T15:44:20.684Z', 'isReachable': True, 'lastSeen': '2024-05-11T08:07:00.742Z', 'attributes': {'customName': 'Nuno Cid Ponte', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.556.0', 'hardwareVersion': 'P2.5', 'serialNumber': '5817d190-530e-4207-a359-b70321c9eecb', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoDownload', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'permittingJoin': False, 'backendConnected': True, 'backendConnectionPersistent': True, 'backendOnboardingComplete': True, 'backendRegion': 'eu-central-1', 'backendCountryCode': 'PT', 'userConsents': [{'name': 'analytics', 'value': 'enabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/Lisbon', 'nextSunSet': '2024-05-11T19:39:00.000Z', 'nextSunRise': '2024-05-12T05:28:00.000Z', 'homestate': 'home', 'countryCode': 'XZ', 'coordinates': {'latitude': 38.72072072072072, 'longitude': -9.237590405943559, 'accuracy': -1}, 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': 'd8b51838-9e6d-4cec-8331-751bdb76c2c3_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T15:10:38.000Z', 'isReachable': True, 'lastSeen': '2024-05-11T09:06:50.000Z', 'attributes': {'customName': 'Sensor Media Room', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFEBFA1AD', 'productCode': 'E2112', 'currentTemperature': 23, 'currentRH': 62, 'currentPM25': 8, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 100, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}]
2024-05-11 09:07:02.389 INFO (SyncWorker_8) [custom_components.dirigera_platform] --------------
2024-05-11 09:07:02.389 INFO (SyncWorker_8) [custom_components.dirigera_platform] === END Devices JSON ===

@sanjoyg
Copy link
Owner

sanjoyg commented May 11, 2024

Correct, the issue is with the base library. Have submitted a pull request as its merged will cut a new release to reflect the same

@sanjoyg
Copy link
Owner

sanjoyg commented May 13, 2024

Should work now, please use the latest release

@vulcanoid1975
Copy link

Hi @sanjoyg,

Yes it does:

image

Although it doesn't show the blinds battery on the list of devices, the entity is shown on the dashboard (Dwain's dashboard):
image

Thank You very much!

I'll be moving the motion sensors to the Ikea hub once again :)

@soren-petersen
Copy link
Author

Hi,

Thank you so much for the quick update.

After upgrading to 1.7.1, I now see the battery level for my IKEA PARASOLL door sensor in the device list. Unfortunately, I do not see the battery levels in the device list for the two types of remotes I currently have connected to my Dirigera ("Remote control N2" and "Tradfri on/off switch").

I also noted that the battery is still reported under "sensors" rather than under "diagnostic" where I find it for Z2M. Not sure it makes any difference apart from aestethics though...

Again: thank you!

@soren-petersen
Copy link
Author

image

@sanjoyg
Copy link
Owner

sanjoyg commented May 14, 2024

Thank you, lemme have a look for the remote controls... I assume they are included in the json dump

@soren-petersen
Copy link
Author

Hi,

Thanks sanjoyg. Really appreciate your help :-)

I'm afraid the json dump was from vulcanoid1975. Would be happy to make a dump as well - but will need a littel pointer on how to create one :-)

For now, the battery is reported for both remotes in the device page under "senors" (if that helps):

image

image

//S

@sanjoyg
Copy link
Owner

sanjoyg commented May 15, 2024

I mis-understdood the issue at the first place. The battery level will appear as a sensor for the device. This is the general trends with most integration where there is one device representation and all relevant data points are represented as sensors. Example IKEA environment device, will expose as one device and multiple sensors for temperature, humidity, battery level etc.

@soren-petersen
Copy link
Author

Sorry if I'm mis-unerstanding your last comment. The issue is that the battery level indicator is missing in the Home Assistant device listing for the remotes ... (on the right-hand column in the screenshot below)

image

... even though the battery level is available under sensors in the device view.

I would love to be able to see the battery level of the remotes directly in the device list.

@soren-petersen
Copy link
Author

My comment about the battery being listed under sensors was a separate (probably unimportant) observation. I noted that batteries of devices in the zigbee2mqtt integration are listed under "Diagnostic" rather than under "Sensors" (see screenhot below). My understanding is that these are also entities, but with a different category. I was wondering whether the category could explain why the battery entity for the Dirigera remotes are not shown in the device list. However, the door sensor has its battery entity under "Sensors", so I assume that is not the explanation.

image

@sanjoyg
Copy link
Owner

sanjoyg commented May 19, 2024

Try now

@soren-petersen
Copy link
Author

Tried. Unfortunatly not working with 1.7.3 :-( Only dirigera integration device that has a battery level indicator in the device list is the PARASOLL door sensor

@vulcanoid1975
Copy link

Parasoll and Vallhorn sensors battery levels are shown:
image

Blinds are not, but are available on diagnostics:
image
image

@sanjoyg
Copy link
Owner

sanjoyg commented May 21, 2024

Is the json dump same? then I can try it

@vulcanoid1975
Copy link

It should be the same, but I made some changes so ... here's another one:

2024-05-21 13:32:42.093 INFO (SyncWorker_39) [custom_components.dirigera_platform] === START Devices JSON ===
2024-05-21 13:32:42.093 INFO (SyncWorker_39) [custom_components.dirigera_platform] --------------
2024-05-21 13:32:42.373 INFO (SyncWorker_39) [custom_components.dirigera_platform] [{'id': 'f299b378-939d-491f-9ba8-f0c724fbc6bf_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-13T10:30:02.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T13:31:39.000Z', 'attributes': {'customName': 'Sensor Kitchen', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5F0A5A', 'productCode': 'E2112', 'currentTemperature': 21, 'currentRH': 71, 'currentPM25': 1, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 167, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '3f59f95c-4277-409f-833e-8d09f9e3a109_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T13:58:54.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T09:51:26.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Kitchen Back Cupboard', 'model': 'ORMANAS LED Strip', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.10', 'hardwareVersion': '1', 'serialNumber': '287681FFFE0AE18A', 'productCode': 'L2112', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 94.998779296875, 'colorSaturation': 0.1377952755905512, 'colorTemperature': 3521, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e67bab52-7f2f-4e8e-b6a7-0c10aa06ca1e_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T15:06:00.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T13:32:37.000Z', 'attributes': {'customName': 'Sensor Office', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE642195', 'productCode': 'E2112', 'currentTemperature': 22, 'currentRH': 64, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 190, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'bb08b138-ac1d-4605-b816-731481dea270', 'name': 'Office', 'color': 'ikea_brown_no_41', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '41557dbf-10ee-408f-a81c-1b6547e81732_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-06T03:00:15.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T02:29:17.000Z', 'customIcon': 'lighting_floor_lamp', 'attributes': {'customName': 'TV Bedroom Light', 'model': 'TRADFRI bulb E27 CWS globe 806lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'serialNumber': '3C2EF5FFFEEE373B', 'productCode': 'LED2109G6', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 34.9969482421875, 'colorSaturation': 0.7992125984251969, 'colorTemperature': 2202, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e51a9e3c-0e0b-450d-a34d-f741cf6a0923_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T16:31:37.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T13:32:41.000Z', 'attributes': {'customName': 'Sensor Bedroom ', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5F0C3A', 'productCode': 'E2112', 'currentTemperature': 22, 'currentRH': 68, 'currentPM25': 1, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 139, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d406c8a-92c8-4139-9860-c94755d33bd6_1', 'type': 'blinds', 'deviceType': 'blinds', 'createdAt': '2024-04-09T20:10:25.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T07:30:39.000Z', 'attributes': {'customName': 'Bedroom Blind Left', 'model': 'FYRTUR block-out roller blind', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.13', 'hardwareVersion': '1', 'serialNumber': 'BC026EFFFE3B4604', 'productCode': 'E1757-140', 'batteryPercentage': 95, 'blindsTargetLevel': 0, 'blindsCurrentLevel': 0, 'blindsState': 'stopped', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'blindsCurrentLevel', 'blindsTargetLevel', 'blindsState']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'feab0316-070b-4a2e-8e97-4c0c354a1636_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T22:43:50.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T08:44:53.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Back Cupboard Down', 'model': 'lumi.light.acn132', 'manufacturer': 'Aqara', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '', 'productCode': '', 'colorHue': 239.660885889077, 'colorSaturation': 1, 'colorTemperature': 3521, 'colorTemperatureMin': 6535, 'colorTemperatureMax': 2702, 'startupTemperature': 4000, 'colorMode': 'temperature', 'lightLevel': 100, 'isOn': False, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'colorTemperature', 'colorHue', 'colorSaturation', 'lightLevel', 'isOn']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9f64b431-4485-4e14-83f1-4693c0dafc93_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-04-13T12:58:10.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T04:13:44.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Door Sensor Outside', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE5287CE', 'productCode': 'E2013', 'batteryPercentage': 82, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'c2a5fc20-d126-4e36-a888-dac432e29351_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T22:39:55.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T00:41:10.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Front Cupboard Down', 'model': 'lumi.light.acn132', 'manufacturer': 'Aqara', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '', 'productCode': '', 'colorHue': 239.660885889077, 'colorSaturation': 1, 'colorTemperature': 3521, 'colorTemperatureMin': 6535, 'colorTemperatureMax': 2702, 'startupTemperature': 4000, 'colorMode': 'temperature', 'lightLevel': 100, 'isOn': False, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'colorTemperature', 'colorHue', 'colorSaturation', 'lightLevel', 'isOn']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '475cc495-4445-4247-ad3e-ddfa149a9cd1_1', 'type': 'blinds', 'deviceType': 'blinds', 'createdAt': '2024-04-05T14:39:51.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T07:30:25.000Z', 'attributes': {'customName': 'Bedroom Blind Right', 'model': 'FYRTUR block-out roller blind', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.13', 'hardwareVersion': '1', 'serialNumber': '6C5CB1FFFE78FA80', 'productCode': 'E1757-140', 'batteryPercentage': 92, 'blindsTargetLevel': 0, 'blindsCurrentLevel': 0, 'blindsState': 'stopped', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'blindsCurrentLevel', 'blindsTargetLevel', 'blindsState']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '49267ed9-cd73-443d-b384-c23c750740a3_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-04-13T13:43:04.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T08:45:10.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Entrance Door Sensor', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE4AC4AE', 'productCode': 'E2013', 'batteryPercentage': 95, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '421d55b1-65fd-4545-a33f-0de44bad173b', 'name': 'Hallway', 'color': 'ikea_yellow_no_24', 'icon': 'rooms_book_case'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '68c6621d-a4dc-428f-8135-642ccf743c8c_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-13T10:29:14.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T13:32:37.000Z', 'attributes': {'customName': 'Sensor Bathroom', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': 'A46DD4FFFE4D1887', 'productCode': 'E2112', 'currentTemperature': 21, 'currentRH': 71, 'currentPM25': 1, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 187, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'cbc8a34a-a0cf-4084-91c1-a9072d3c249e', 'name': 'Bathroom', 'color': 'ikea_pink_no_8', 'icon': 'rooms_bathtub'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'f5878eb5-8acf-4d3e-b627-948655a71375_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T13:55:13.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T00:41:08.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Kitchen Front Cupboard', 'model': 'ORMANAS LED Strip', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.10', 'hardwareVersion': '1', 'serialNumber': '287681FFFE7FFB0C', 'productCode': 'L2112', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 30.227349000635456, 'colorSaturation': 0.6369916039373907, 'colorTemperature': 3521, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '5817d190-530e-4207-a359-b70321c9eecb_1', 'relationId': '5817d190-530e-4207-a359-b70321c9eecb', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2023-12-15T15:44:20.684Z', 'isReachable': True, 'lastSeen': '2024-05-21T12:32:00.468Z', 'attributes': {'customName': 'Nuno Cid Ponte', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.556.0', 'hardwareVersion': 'P2.5', 'serialNumber': '5817d190-530e-4207-a359-b70321c9eecb', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoDownload', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'permittingJoin': False, 'backendConnected': True, 'backendConnectionPersistent': True, 'backendOnboardingComplete': True, 'backendRegion': 'eu-central-1', 'backendCountryCode': 'PT', 'userConsents': [{'name': 'analytics', 'value': 'enabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/Lisbon', 'nextSunSet': '2024-05-21T19:48:00.000Z', 'nextSunRise': '2024-05-22T05:20:00.000Z', 'homestate': 'home', 'countryCode': 'XZ', 'coordinates': {'latitude': 38.72072072072072, 'longitude': -9.237590405943559, 'accuracy': -1}, 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': 'd8b51838-9e6d-4cec-8331-751bdb76c2c3_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T15:10:38.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T13:32:41.000Z', 'attributes': {'customName': 'Sensor Media Room', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFEBFA1AD', 'productCode': 'E2112', 'currentTemperature': 21, 'currentRH': 71, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 149, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '7afcc32a-bc70-40d5-8343-bf995d010b53_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-05-15T20:28:30.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T11:07:09.000Z', 'attributes': {'customName': 'Bedroom Window Sensor', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'PARASOLL Door/Window Sensor', 'productCode': 'E2013', 'serialNumber': '048727FFFE9A65B8', 'batteryPercentage': 96, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'd6b81b57-ca75-458a-a1cd-8c557e54d14a_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-05-15T20:32:34.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T08:00:16.000Z', 'customIcon': 'placement_window', 'attributes': {'customName': 'Office Window Sensor', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'PARASOLL Door/Window Sensor', 'productCode': 'E2013', 'serialNumber': '048727FFFEA24F97', 'batteryPercentage': 95, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'bb08b138-ac1d-4605-b816-731481dea270', 'name': 'Office', 'color': 'ikea_brown_no_41', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'ec3c0e4a-81b8-4c0e-a6d6-134a78010d2c_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T18:57:12.000Z', 'isReachable': True, 'lastSeen': '2024-05-20T22:54:02.000Z', 'attributes': {'customName': 'Outside Light 4', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRIbulbE14WWclear250lm', 'productCode': 'LED1935C3', 'serialNumber': '38398FFFFE91270D', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'identifyPeriod': 30, 'identifyStarted': '2024-05-18T19:53:54.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': []}, {'id': 'd3ae570b-b7cb-4c7b-9a5b-79535dc0c805_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:29.000Z', 'isReachable': True, 'lastSeen': '2024-05-20T22:54:02.000Z', 'attributes': {'customName': 'Light 9', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRIbulbE14WWclear250lm', 'productCode': 'LED1935C3', 'serialNumber': '0CAE5FFFFE5EB0A4', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': 'e213f027-7dc8-40b9-befa-7bacfe3eb1fb_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:30.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T08:18:18.000Z', 'attributes': {'customName': 'Light 10', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRIbulbE14WWclear250lm', 'productCode': 'LED1935C3', 'serialNumber': '0CAE5FFFFE06D606', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': 'f43b20b3-42aa-4ae6-ad29-5489da980401_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:33.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T11:03:02.000Z', 'attributes': {'customName': 'Light 11', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRIbulbE14WWclear250lm', 'productCode': 'LED1935C3', 'serialNumber': '0CAE5FFFFE11E8A2', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': '09ef584d-2439-4a8e-8e01-6a49a92ff9e0_1', 'type': 'outlet', 'deviceType': 'outlet', 'createdAt': '2024-05-18T23:44:26.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T04:55:03.000Z', 'attributes': {'customName': 'Outside Socket Light 1', 'firmwareVersion': '2.4.4', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRETAKT Smart plug', 'productCode': 'E2204', 'serialNumber': '28DBA7FFFEA9C430', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'childLock': False, 'statusLight': True, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'childLock', 'statusLight']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '607443c0-7044-4c5b-946e-493f5b713263_1', 'type': 'outlet', 'deviceType': 'outlet', 'createdAt': '2024-05-18T23:46:08.000Z', 'isReachable': True, 'lastSeen': '2024-05-20T22:47:43.000Z', 'attributes': {'customName': 'Outside Socket Light 2', 'firmwareVersion': '2.4.4', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRETAKT Smart plug', 'productCode': 'E2204', 'serialNumber': '881A14FFFE2F5E65', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'childLock': False, 'statusLight': True, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'childLock', 'statusLight']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d04542a-5d6c-4d09-b207-469cb72fc9b0_1', 'relationId': '9d04542a-5d6c-4d09-b207-469cb72fc9b0', 'type': 'sensor', 'deviceType': 'motionSensor', 'createdAt': '2024-05-19T12:38:16.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T13:32:33.000Z', 'attributes': {'customName': 'Motion Sensor Media Room', 'firmwareVersion': '1.0.64', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'VALLHORN Wireless Motion Sensor', 'productCode': 'E2134', 'serialNumber': '881A14FFFED8E853', 'batteryPercentage': 86, 'isOn': False, 'isDetected': False, 'motionDetectedDelay': 20, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'sensorConfig': {'scheduleOn': False, 'onDuration': 60, 'schedule': {'onCondition': {'time': '01:00'}, 'offCondition': {'time': '06:00'}}}, 'circadianPresets': []}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d04542a-5d6c-4d09-b207-469cb72fc9b0_3', 'relationId': '9d04542a-5d6c-4d09-b207-469cb72fc9b0', 'type': 'unknown', 'deviceType': 'lightSensor', 'createdAt': '2024-05-19T12:38:16.000Z', 'isReachable': True, 'lastSeen': '2024-05-21T13:32:33.000Z', 'attributes': {'customName': '', 'firmwareVersion': '1.0.64', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'VALLHORN Wireless Motion Sensor', 'productCode': 'E2134', 'serialNumber': '881A14FFFED8E853', 'illuminance': 15051, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}]
2024-05-21 13:32:42.373 INFO (SyncWorker_39) [custom_components.dirigera_platform] --------------
2024-05-21 13:32:42.374 INFO (SyncWorker_39) [custom_components.dirigera_platform] === END Devices JSON ===

@ianlockhead
Copy link

@sanjoyg Hi, I hope this issue can be be fixed quite easily. As you can see only Tradfri motion sensor has the battery status correct show in device list. The Tradfri motion sensor has battery level exposed via Diagnostics and not in the Sensors section which is correct. Other devices has the battery level exposed via Sensor and the Diagnostics shows nothing:
Snímek obrazovky 2024-05-21 v 19 35 59
Snímek obrazovky 2024-05-21 v 19 53 24
Snímek obrazovky 2024-05-21 v 19 55 28

@sanjoyg
Copy link
Owner

sanjoyg commented May 21, 2024

Yup will have it in the next release

@sanjoyg
Copy link
Owner

sanjoyg commented May 25, 2024

Please try the latest change

@ianlockhead
Copy link

ianlockhead commented May 26, 2024

I can confirm a little change. I can see the battery state in diagnostics, but the battery icon/state is not visible in devices list:
Snímek obrazovky 2024-05-26 v 19 13 04
Also if I go into battery details I see some difference to motion sensor, where the battery is implemented well. The main difference is that motion sensor has the battery exposed via "binary_sensor" but the tradfri switch has "sensor"
See below:
Snímek obrazovky 2024-05-26 v 19 13 27
Snímek obrazovky 2024-05-26 v 19 13 40

@sanjoyg
Copy link
Owner

sanjoyg commented May 29, 2024

Please try the latest release

@ianlockhead
Copy link

Please try the latest release

I have tried with release 1.7.6 which is currently the latest version

@sanjoyg
Copy link
Owner

sanjoyg commented May 31, 2024

I was trying to co-relate the following entities to your JSON but I could find the entries. Can you point out the id of the entity from JSON dump in this thread for the following

  1. Office on/off switch
  2. Office styrbar remote
  3. Office symfonisk remote

@ianlockhead
Copy link

I was trying to co-relate the following entities to your JSON but I could find the entries. Can you point out the id of the entity from JSON dump in this thread for the following

  1. Office on/off switch
  2. Office styrbar remote
  3. Office symfonisk remote

The json in upper comment is from another user. I posted to this thread screenshots only. But my json is posted in another issue in last comment:
#23 (comment)
You can find there the 1. Office on/off switch and 3. Office symfonisk remote. The styrbar was paired to the hub later and is not included in the json but I believe you can fix that issue by troubleshooting it on that office on/off switch which is model E1743 (https://zigbee.blakadder.com/Ikea_E1743.html)
Thanks

@sanjoyg
Copy link
Owner

sanjoyg commented Jun 3, 2024

Fixed this in the latest release, have tested and reviewed it.

@ianlockhead
Copy link

Fixed this in the latest release, have tested and reviewed it.

Nice job man 👏 It is now even better than other devices cause next to the 🔋 icon is percentage shown. Thank you
IMG_3177

@thstieler
Copy link

thstieler commented Jun 5, 2024

I'm using this HA integration for my smarthome as well and I'm very grateful for your work.

I can confirm that with the new release almost all of by Dirigera devices are showing the battery level in the device overview, but there are two exceptions: Two Fyrtur blinds
image

The battery is shown in the diagnose section for the device, but unlike other devices without value, the value is shown in a popup, if I click on the battery icon or label:
image

But it's not shown in the device list and I cannot see the level in an enitity card on a dashboard, it only shows on click:
image

Are blinds something special? Would be great to see the battery level for them as well...

@sanjoyg
Copy link
Owner

sanjoyg commented Jun 5, 2024 via email

@thstieler
Copy link

thstieler commented Jun 5, 2024

Here is the plain logfile:
home-assistant_2024-06-05T13-43-08.494Z.log

I also "beautified" the JSON (replaced single by double quotes, (True|False) by (true|false), then add linebreaks/identation). Here is the result:
dirigera.json

Here's a remote with working battery, the blind control, with label "Büro Rollos" in the screenshot above:

  {
        "id": "c99dc3fc-894e-4983-b8c3-4b3d473e2779_1",
        "type": "controller",
        "deviceType": "blindsController",
        "createdAt": "2023-11-20T22:37:31.000Z",
        "isReachable": true,
        "lastSeen": "2024-06-04T15:02:27.000Z",
        "attributes": {
            "customName": "B\u00fcro Rollos ",
            "model": "TRADFRI open/close remote",
            "manufacturer": "IKEA of Sweden",
            "firmwareVersion": "24.4.6",
            "hardwareVersion": "1",
            "serialNumber": "588E81FFFE277D60",
            "productCode": "E1766",
            "batteryPercentage": 20,
            "isOn": false,
            "lightLevel": 1,
            "blindsCurrentLevel": 0,
            "blindsState": "",
            "permittingJoin": false,
            "otaStatus": "upToDate",
            "otaState": "readyToCheck",
            "otaProgress": 0,
            "otaPolicy": "autoUpdate",
            "otaScheduleStart": "00:00",
            "otaScheduleEnd": "00:00"
        },
        "capabilities": {
            "canSend": [
                "isOn",
                "lightLevel",
                "blindsState"
            ],
            "canReceive": [
                "customName"
            ]
        },

And here is one of the blinds:

    {
        "id": "7bb03ca8-5bcc-413c-a731-ea2c12f892ae_1",
        "type": "blinds",
        "deviceType": "blinds",
        "createdAt": "2023-11-20T22:40:08.000Z",
        "isReachable": true,
        "lastSeen": "2024-06-05T10:15:54.000Z",
        "attributes": {
            "customName": "B\u00fcro Rollo rechts ",
            "model": "FYRTUR block-out roller blind",
            "manufacturer": "IKEA of Sweden",
            "firmwareVersion": "24.4.13",
            "hardwareVersion": "1",
            "serialNumber": "842E14FFFE145B85",
            "productCode": "E1757-140",
            "batteryPercentage": 80,
            "blindsTargetLevel": 40,
            "blindsCurrentLevel": 40,
            "blindsState": "stopped",
            "permittingJoin": false,
            "otaStatus": "upToDate",
            "otaState": "readyToCheck",
            "otaProgress": 0,
            "otaPolicy": "autoUpdate",
            "otaScheduleStart": "00:00",
            "otaScheduleEnd": "00:00"
        },
        "capabilities": {
            "canSend": [],
            "canReceive": [
                "customName",
                "blindsCurrentLevel",
                "blindsTargetLevel",
                "blindsState"
            ]
        },
        "room": {
            "id": "c0d3d0bd-43b9-4144-ae92-3c1f9a180878",
            "name": "B\u00fcro",
            "color": "pantone_16_0230_tcx",
            "icon": "rooms_desk"
        },
        "deviceSet": [],
        "remoteLinks": [
            "c99dc3fc-894e-4983-b8c3-4b3d473e2779_1"
        ],
        "isHidden": false
    }

Actually I can't see a difference in the JSON regarding battery level, but maybe you can :-)

@sanjoyg
Copy link
Owner

sanjoyg commented Jun 5, 2024

I tried testing... for some reason it just show up... Will try n fix it over few days

@thstieler
Copy link

Wow, sounds really good.
Will give it a try when you're ready!

@sanjoyg
Copy link
Owner

sanjoyg commented Jun 6, 2024

I meant it doesnt show up :-(

@thstieler
Copy link

thstieler commented Jun 6, 2024

Ah, ok.

How can I help tp reproduce?
I mean, the screenshots are real, I promise I didn't edit them ;-)

@sanjoyg
Copy link
Owner

sanjoyg commented Jun 6, 2024 via email

@thstieler
Copy link

Ah, ok.
Got it...

@tezvienna
Copy link

I have the same problem that the battery icons in the dashboard are static. My guess: The entities are of type “binary_sensor”; shouldn't they be “sensor”? Binary means that it is not a numerical value, but an on/off or something similar? But I'm not a specialist, so maybe I misunderstood.

Thank you very much for your efforts for this extension!

image

@sanjoyg
Copy link
Owner

sanjoyg commented Aug 27, 2024

The battery is actually of sensor type, Homeassistant has an issue with blinds % its reported in HASS already

@tezvienna
Copy link

In my installation, the type is binary_sensor (Parasoll):
Screenshot 2024-08-28 093016

@sanjoyg
Copy link
Owner

sanjoyg commented Aug 28, 2024

aah .. can u give me the json dump

@tezvienna
Copy link

tezvienna commented Aug 28, 2024

ikea.txt
here you are @sanjoyg
thank you for your effort!

@sanjoyg
Copy link
Owner

sanjoyg commented Oct 8, 2024

will you try this with the latest release once more

@tezvienna
Copy link

tezvienna commented Oct 8, 2024

Sorry, again binary_sensor and not dynamic battery icon (BADRING Water Leakage Sensor):
image
I deleted the device and reconfigured it to use the actual config (1.8.0 integration).

@sanjoyg
Copy link
Owner

sanjoyg commented Oct 8, 2024

This should be fixed now, have a look

@tezvienna
Copy link

I got an error after installing and rebooting the 1.8.1; when I tried to reconfigure the integration, home assistant completely crashed.
`Logger: homeassistant.config_entries
Quelle: config_entries.py:594
Erstmals aufgetreten: 15:27:40 (2 Vorkommnisse)
Zuletzt protokolliert: 15:28:40

Error setting up entry IKEA Dirigera Hub : 192.168.23.48 for dirigera_platform
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dirigera_platform/init.py", line 119, in async_setup_entry
from .core.motion_sensor import ikea_motion_sensor_device
ModuleNotFoundError: No module named 'custom_components.dirigera_platform.core'`

@sanjoyg
Copy link
Owner

sanjoyg commented Oct 8, 2024

There was bug left behind, try 1.8.2

@tezvienna
Copy link

Thank you, the integration now works again without errors. The battery entity is now created as a sensor (and no longer as binary_sensor). Nevertheless, the dynamic battery icon (with changing fill level) is not used, but a static icon. I don't know why this is the case.

@sanjoyg
Copy link
Owner

sanjoyg commented Oct 11, 2024

Is the correct battery % been shown?

@tezvienna
Copy link

Hi, yes, it is correct. At the top of the screen the dynamic icon is shown, at the battery entity only the static:
image

Other integrations show the dynamic icon everywhere (without addional configuration):
image

But ultimately this is just a blemish, not a major problem. Thanks for your efforts!

@sanjoyg
Copy link
Owner

sanjoyg commented Oct 15, 2024

This is fixed now.

@sanjoyg sanjoyg closed this as completed Oct 15, 2024
@tezvienna
Copy link

With 1.8.7 everything is fine, thank you for your effort!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants