sanjoyg / dirigera_platform

HomeAssistant Integration for Dirigera Platform
MIT License
122 stars 16 forks source link

Xiaomi Miija Sensors #84

Closed frodr1k closed 1 month ago

frodr1k commented 1 month ago

Hi!

I've managed to add Xiaomi Mija sensors to Dirigera and I can access them through the Home Smart App. Though I can't see them in the integration. So I assume there is some kind of properties/info that you need to be able to add it.

I wonder how can I assist with adding them?

I've enclosed debuggin info:

2024-10-15 12:47:12.893 DEBUG (MainThread) [custom_components.dirigera_platform] update called ut1brasflakt 2024-10-15 12:47:42.893 DEBUG (MainThread) [custom_components.dirigera_platform] update called ut1brasflakt 2024-10-15 12:48:12.896 DEBUG (MainThread) [custom_components.dirigera_platform] update called ut1brasflakt 2024-10-15 12:48:20.356 INFO (SyncWorker_24) [custom_components.dirigera_platform] === START Devices JSON === 2024-10-15 12:48:20.356 INFO (SyncWorker_24) [custom_components.dirigera_platform] -------------- 2024-10-15 12:48:20.681 INFO (SyncWorker_24) [custom_components.dirigera_platform] [{'id': 'eec0c4d9-1981-4863-ba3e-ed145553d0fa_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-01-14T16:02:46.000Z', 'isReachable': False, 'lastSeen': '2024-10-10T01:39:27.000Z', 'attributes': {'customName': 'OanvandReserv', 'model': 'TRADFRI bulb E27 WW 806lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.3.086', 'hardwareVersion': '2', 'serialNumber': '5C0272FFFE537E48', 'productCode': 'LED1836G9', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 75, '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': '707f08ec-8681-4d5b-82dd-2d302091c404', 'name': 'Reserv', 'color': 'pantone_15_0522_tcx', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False, 'adaptiveProfile': {}}, {'id': 'afb8ceb9-dbcc-4f54-b0d2-bef71caf1eff_1', 'type': 'controller', 'deviceType': 'lightController', 'createdAt': '2024-01-14T17:14:32.000Z', 'isReachable': False, 'lastSeen': '2024-10-10T01:39:27.000Z', 'attributes': {'customName': 'Sw1Gastrum', 'model': 'TRADFRI on/off switch', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.3.079', 'hardwareVersion': '1', 'serialNumber': '5C0272FFFEB82D96', 'productCode': 'E1743', 'batteryPercentage': 87, 'isOn': False, 'lightLevel': 1, 'blindsCurrentLevel': 0, 'blindsState': '', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'circadianPresets': []}, 'capabilities': {'canSend': ['isOn', 'lightLevel', 'blindsState'], 'canReceive': ['customName']}, 'room': {'id': '34cc6a9a-6893-4af5-b67d-4da4d3fc39d7', 'name': 'Gastrum', 'color': 'ikea_yellow_no_24', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '06ebb895-9f88-4e71-b964-29d99b95ad8a_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-02-15T08:23:05.000Z', 'isReachable': False, 'lastSeen': '2024-10-15T04:45:35.000Z', 'attributes': {'customName': 't8fredrik', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-1100', 'hardwareVersion': '15', 'serialNumber': 'A4C13865C5B8B694', 'batteryPercentage': 100, 'currentRH': 58, 'currentTemperature': 20.43, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '3157c45f-5569-418e-aa9b-2d76cb334768', 'name': 'FredrikKontor', 'color': 'ikea_beige_1', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '2184f057-42fb-4601-a8b0-89e6ba1d138c_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-01-26T17:56:00.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:36:30.000Z', 'attributes': {'customName': 't2badrummaster', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-0118', 'hardwareVersion': '15', 'serialNumber': 'A4C138B419CD7D06', 'batteryPercentage': 58, 'currentTemperature': 20.88, 'currentRH': 63, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'da024210-4c5e-4b47-9fc5-4adcfbbaf93b', 'name': 'MasterBadrum', 'color': 'ikea_blue_no_63', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '913e2f96-4cbc-47a4-932c-1048d60f50cd_1', 'type': 'speaker', 'deviceType': 'speaker', 'createdAt': '2023-09-19T13:50:05.365Z', 'isReachable': True, 'lastSeen': '2024-10-15T04:04:10.147Z', 'attributes': {'customName': 'Kök', 'model': 'SYMFONISK Table lamp S30 ColorWhite', 'manufacturer': 'Sonos, Inc.', 'firmwareVersion': '80.1-56190', 'hardwareVersion': '1.34.2.9-2.1', 'serialNumber': '54-2A-1B-57-AC-82:8', 'productCode': 'S30White', 'identifyStarted': '2023-09-19T13:50:05.365Z', 'identifyPeriod': 0, 'playback': 'playbackPaused', 'playbackLastChangedTimestamp': '2024-10-14T19:45:20.145Z', 'playbackAudio': {'serviceType': 'sonos', 'providerType': 'Spotify', 'playItem': {'id': 'eyJhY2NvdW50VHlwZSI6InNvbm9zIiwiY29udGVudFR5cGUiOiJjb250YWluZXIiLCJjb250ZW50Ijp7ImNvbnRhaW5lciI6eyJhY2NvdW50SWQiOiJzbl8zIiwib2JqZWN0SWQiOiJzcG90aWZ5OmVwaXNvZGU6M1VXM2NVSzdnOTNlREozNmlCQmRlTSIsInNlcnZpY2VJZCI6IjkiLCJ0eXBlIjoiZXBpc29kZS5wb2RjYXN0In19fQ==', 'title': '#210 Aggressiva mans-tanter som hatar ungdomar', 'artist': 'Flashback Forever', 'imageURL': 'https://i.scdn.co/image/ab6765630000ba8ac242c0b1a14b6d9933524fed', 'duration': 5517000}, 'nextPlayItem': {'title': '24. Babypuder & Bokmässa', 'artist': 'Västgötapodden '}}, 'playbackPosition': {'position': 3660000, 'timestamp': '2024-10-14T19:45:20.144Z'}, 'playbackAvailableActions': {'crossfade': False, 'pause': True, 'repeat': ['off', 'playItem', 'playlist'], 'seek': True, 'shuffle': False, 'playbackNext': True, 'playbackPrev': True}, 'playbackModes': {'crossfade': False, 'repeat': 'off', 'shuffle': False}, 'volume': 42, 'isMuted': False, 'audioGroup': 'bd8044b2-e03f-44fd-8a15-0a93b05db335'}, 'capabilities': {'canSend': [], 'canReceive': ['playback', 'playbackAudio', 'volume', 'isMuted']}, 'room': {'id': '7c48961c-06e8-41a7-bda7-e7229e73a6f0', 'name': 'Kök', 'color': 'ikea_blue_no_58', 'icon': 'rooms_kitchen'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '95b7eb66-aa7e-4a11-8516-2c92eca6b984_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-02-15T08:25:09.000Z', 'isReachable': False, 'lastSeen': '2024-10-10T01:39:28.000Z', 'attributes': {'customName': 's9mastersov', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-1100', 'hardwareVersion': '15', 'serialNumber': 'A4C13855E5F7C2DA', 'batteryPercentage': 11, 'currentRH': 52, 'currentTemperature': 23.76, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'd7ee6cdb-2200-414e-91d8-07e26edb6ee1', 'name': 'MasterSovrum', 'color': 'ikea_red_no_39', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'edc0d523-c9a4-42eb-b00b-c1bbfa41c125_1', 'type': 'outlet', 'deviceType': 'outlet', 'createdAt': '2024-01-07T15:03:36.000Z', 'isReachable': False, 'lastSeen': '2024-10-10T01:39:28.000Z', 'attributes': {'customName': 'ut1brasflakt', 'model': 'TRADFRI control outlet', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.3.089', 'hardwareVersion': '1', 'serialNumber': 'BC33ACFFFE72839D', 'productCode': 'E1603', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 100, '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': 'ff7b586b-141f-4b3f-af6a-f3707471ec07', 'name': 'Brasa', 'color': 'ikea_beige_1', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': ['cf0eed43-d85f-4bc4-a5a1-2cd8c7285667_1'], 'isHidden': False}, {'id': '0b050449-2d23-4636-b669-c15d48c5a56c_1', 'type': 'controller', 'deviceType': 'lightController', 'createdAt': '2024-01-14T16:51:38.000Z', 'isReachable': True, 'lastSeen': '2024-10-14T16:09:22.000Z', 'attributes': {'customName': 'sw1hall', 'model': 'TRADFRI on/off switch', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.6', 'hardwareVersion': '1', 'serialNumber': '0C4314FFFE194B21', 'productCode': 'E1743', 'batteryPercentage': 40, 'isOn': False, 'lightLevel': 1, 'blindsCurrentLevel': 0, 'blindsState': '', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'circadianPresets': []}, 'capabilities': {'canSend': ['isOn', 'lightLevel', 'blindsState'], 'canReceive': ['customName']}, 'room': {'id': '0452454b-db0a-47b0-8dd3-b478e8fa2e8b', 'name': 'Hall', 'color': 'pantone_16_0940_tcx', 'icon': 'rooms_coat_hanger'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e3b56ab0-04aa-4d96-a82e-b35c548663dc_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-01-26T18:14:12.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:44:53.000Z', 'attributes': {'customName': 't4ulrika', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-0118', 'hardwareVersion': '15', 'serialNumber': 'A4C138A1BCBBE6B9', 'batteryPercentage': 57, 'currentTemperature': 21.3, 'currentRH': 58, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'f954cdf6-fdec-4d5a-9406-04dca2ff54f5', 'name': 'UlrikaKontor', 'color': 'pantone_16_0230_tcx', 'icon': 'rooms_office_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '23e7634f-0936-4d3d-8f54-df109e8d5aff_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-24T04:36:00.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:10:05.000Z', 'attributes': {'customName': 'lamp1fredrik', 'model': 'TRADFRIbulbE14WScandleopal470lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.20', 'hardwareVersion': '1', 'serialNumber': 'B4E3F9FFFEF34E6D', 'productCode': 'LED1949C5', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 52, 'startUpCurrentLevel': -1, 'colorTemperature': 2188, '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']}, 'room': {'id': '3157c45f-5569-418e-aa9b-2d76cb334768', 'name': 'FredrikKontor', 'color': 'ikea_beige_1', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': ['bcd8be85-9222-49f7-9b93-a8d79a6c464a_1'], 'isHidden': False, 'adaptiveProfile': {}}, {'id': 'bcd8be85-9222-49f7-9b93-a8d79a6c464a_1', 'type': 'controller', 'deviceType': 'lightController', 'createdAt': '2024-01-15T17:27:13.000Z', 'isReachable': True, 'lastSeen': '2024-10-14T14:38:06.000Z', 'attributes': {'customName': 'sw1fredrik', 'model': 'TRADFRI remote control', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.5', 'hardwareVersion': '1', 'serialNumber': 'BC33ACFFFED4E70C', 'productCode': 'E1810', 'batteryPercentage': 20, 'isOn': False, 'lightLevel': 1, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'circadianPresets': []}, 'capabilities': {'canSend': ['isOn', 'lightLevel'], 'canReceive': ['customName']}, 'room': {'id': '3157c45f-5569-418e-aa9b-2d76cb334768', 'name': 'FredrikKontor', 'color': 'ikea_beige_1', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '4428b3ea-d5d3-432f-8b8a-d54321910f9a_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-01-26T18:04:24.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:47:06.000Z', 'attributes': {'customName': 'T3tvhorna', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-0118', 'hardwareVersion': '15', 'serialNumber': 'A4C1387831DFBAEA', 'batteryPercentage': 50, 'currentTemperature': 22.55, 'currentRH': 54, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'c28e44c5-fe2b-4f0e-ae13-860808d44c0c', 'name': 'Tvhorna', 'color': 'ikea_green_no_65', 'icon': 'rooms_sofa'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'ed9b019d-c862-48a3-8b76-d158d1947a16_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-01-05T09:39:10.000Z', 'isReachable': False, 'lastSeen': '2024-10-10T01:39:27.000Z', 'attributes': {'customName': 't8huvudentre', 'model': 'lumi.weather', 'manufacturer': '', 'firmwareVersion': '', 'hardwareVersion': '', 'serialNumber': '00158D00046589B4', 'currentTemperature': 17.39, 'currentRH': 49, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'be18ea9f-eb1c-43e9-9cd1-afecbb5e81f1', 'name': 'Huvudentre', 'color': 'ikea_yellow_no_31', 'icon': 'rooms_door'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e7fbdac5-b69f-4349-85a7-566e93202a33_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-01-26T17:19:44.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:44:35.000Z', 'attributes': {'customName': 't1gastbadrum', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-0118', 'hardwareVersion': '15', 'serialNumber': 'A4C13855A1FF606E', 'batteryPercentage': 46, 'currentTemperature': 21.06, 'currentRH': 61, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '8c80c610-077e-43f8-a45c-318f1a8b43c0', 'name': 'GästBadrum', 'color': 'ikea_yellow_no_31', 'icon': 'rooms_bathtub'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e7b234eb-339b-45e3-bc71-79a87fdcf6e7_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-01-14T15:29:47.000Z', 'isReachable': False, 'lastSeen': '2024-10-10T01:39:27.000Z', 'customIcon': 'lighting_chandelier', 'attributes': {'customName': 'lamp2ulrika', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '842E14FFFE4E7AA1', 'productCode': 'LED1935C3', 'isOn': True, 'startupOnOff': 'startPrevious', 'lightLevel': 100, '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': 'f954cdf6-fdec-4d5a-9406-04dca2ff54f5', 'name': 'UlrikaKontor', 'color': 'pantone_16_0230_tcx', 'icon': 'rooms_office_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False, 'adaptiveProfile': {}}, {'id': 'a6978c73-03eb-4303-9b2c-a9a18ce7afde_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-02-15T08:28:00.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:34:55.000Z', 'attributes': {'customName': 't10hallen', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-1100', 'hardwareVersion': '15', 'serialNumber': 'A4C138EDD1BFCEAC', 'batteryPercentage': 23, 'currentRH': 61, 'currentTemperature': 20.49, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '0452454b-db0a-47b0-8dd3-b478e8fa2e8b', 'name': 'Hall', 'color': 'pantone_16_0940_tcx', 'icon': 'rooms_coat_hanger'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '6dfc7f20-6306-4680-b042-41e3236bc295_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-07-24T04:31:53.000Z', 'isReachable': False, 'lastSeen': '2024-10-11T16:15:42.000Z', 'attributes': {'customName': 'lamp1gast', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.4', 'hardwareVersion': '1', 'serialNumber': '842E14FFFE4E7590', 'productCode': 'LED1935C3', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 54, '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': '34cc6a9a-6893-4af5-b67d-4da4d3fc39d7', 'name': 'Gastrum', 'color': 'ikea_yellow_no_24', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': ['afb8ceb9-dbcc-4f54-b0d2-bef71caf1eff_1'], 'isHidden': False, 'adaptiveProfile': {}}, {'id': 'c3f4e48d-7a83-4784-b8ee-dd847adc32a8_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-01-04T10:43:07.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:41:32.000Z', 'attributes': {'customName': 'T6kokfindus', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-1006', 'hardwareVersion': '14', 'serialNumber': 'A4C1383B14FD525C', 'batteryPercentage': 72, 'currentRH': 54, 'currentTemperature': 22.82, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '7c48961c-06e8-41a7-bda7-e7229e73a6f0', 'name': 'Kök', 'color': 'ikea_blue_no_58', 'icon': 'rooms_kitchen'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'cf0eed43-d85f-4bc4-a5a1-2cd8c7285667_1', 'type': 'controller', 'deviceType': 'lightController', 'createdAt': '2024-01-16T17:10:41.000Z', 'isReachable': True, 'lastSeen': '2024-10-14T16:30:50.000Z', 'attributes': {'customName': 'sw1brasa', 'model': 'TRADFRI on/off switch', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.3.079', 'hardwareVersion': '1', 'serialNumber': '5C0272FFFEB7D500', 'productCode': 'E1743', 'batteryPercentage': 87, 'isOn': False, 'lightLevel': 1, 'blindsCurrentLevel': 0, 'blindsState': '', 'permittingJoin': False, 'otaStatus': 'updateAvailable', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'circadianPresets': []}, 'capabilities': {'canSend': ['isOn', 'lightLevel', 'blindsState'], 'canReceive': ['customName']}, 'room': {'id': 'ff7b586b-141f-4b3f-af6a-f3707471ec07', 'name': 'Brasa', 'color': 'ikea_beige_1', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '0489d6bc-c946-49df-844d-4ecce17e9818_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-01-26T18:24:14.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:34:48.000Z', 'attributes': {'customName': 't5tvattstuga', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-0118', 'hardwareVersion': '15', 'serialNumber': 'A4C13868E56A799C', 'batteryPercentage': 56, 'currentTemperature': 21.06, 'currentRH': 58, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '2921dac3-22e2-4fa8-9dec-3e105d9c1490', 'name': 'Tvättstuga', 'color': 'ikea_blue_no_58', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'a48299e5-0a76-4a9a-865b-f468936faf41_1', 'type': 'airPurifier', 'deviceType': 'airPurifier', 'createdAt': '2024-01-14T15:00:41.000Z', 'isReachable': False, 'lastSeen': '2024-10-11T15:19:34.000Z', 'attributes': {'customName': 'Luft1Gastrum', 'model': 'STARKVIND Air purifier', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.001', 'hardwareVersion': '1', 'serialNumber': '8CF681FFFE6D42FD', 'productCode': 'E2007', 'fanMode': 'off', 'fanModeSequence': 'lowMediumHighAuto', 'motorState': 0, 'motorRuntime': 135210, 'filterElapsedTime': 379290, 'filterAlarmStatus': True, 'filterLifetime': 259200, 'childLock': False, 'statusLight': True, 'currentPM25': 0, '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', 'fanMode', 'fanModeSequence', 'motorState', 'childLock', 'statusLight']}, 'room': {'id': '34cc6a9a-6893-4af5-b67d-4da4d3fc39d7', 'name': 'Gastrum', 'color': 'ikea_yellow_no_24', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'd90e4cd6-686d-4090-a376-910bd6644530_1', 'relationId': 'd90e4cd6-686d-4090-a376-910bd6644530', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2023-09-19T13:49:47.688Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:48:00.574Z', 'attributes': {'customName': 'HamboDirigera', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.660.2', 'hardwareVersion': 'P2.5', 'serialNumber': 'd90e4cd6-686d-4090-a376-910bd6644530', 'identifyStarted': '2024-10-10T01:39:26.000Z', 'identifyPeriod': 65534, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoDownload', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'permittingJoin': False, 'backendConnected': False, 'backendConnectionPersistent': False, 'backendOnboardingComplete': True, 'backendRegion': 'eu-central-1', 'backendCountryCode': 'SE', 'userConsents': [{'name': 'analytics', 'value': 'disabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/Stockholm', 'nextSunSet': '2024-10-15T16:09:00.000Z', 'nextSunRise': '2024-10-16T05:49:00.000Z', 'homestate': 'home', 'countryCode': 'XZ', 'coordinates': {'latitude': 57.6590832, 'longitude': 12.1072352, 'accuracy': -1}, 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': 'a620c45b-ffda-4987-a68c-7aa6f826a7ef_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-07-24T04:33:08.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:10:28.000Z', 'attributes': {'customName': 'Lamp1hall', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.4', 'hardwareVersion': '1', 'serialNumber': '680AE2FFFE6E0429', 'productCode': 'LED1935C3', 'isOn': True, 'startupOnOff': 'startPrevious', 'lightLevel': 58, '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': '0452454b-db0a-47b0-8dd3-b478e8fa2e8b', 'name': 'Hall', 'color': 'pantone_16_0940_tcx', 'icon': 'rooms_coat_hanger'}, 'deviceSet': [], 'remoteLinks': ['0b050449-2d23-4636-b669-c15d48c5a56c_1'], 'isHidden': False, 'adaptiveProfile': {}}, {'id': '6cead9e5-aceb-439b-a4f1-784055ec113e_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-01-14T17:16:06.000Z', 'isReachable': True, 'lastSeen': '2024-10-14T20:30:00.000Z', 'attributes': {'customName': 'lamp2fredrik', 'model': 'TRADFRI bulb E27 WW 806lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.3.093', 'hardwareVersion': '2', 'serialNumber': '5C0272FFFEB230EC', 'productCode': 'LED1836G9', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 52, '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': '3157c45f-5569-418e-aa9b-2d76cb334768', 'name': 'FredrikKontor', 'color': 'ikea_beige_1', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': ['bcd8be85-9222-49f7-9b93-a8d79a6c464a_1'], 'isHidden': False, 'adaptiveProfile': {}}, {'id': 'e70b87fe-3bd1-487d-abeb-569617b7a245_1', 'type': 'airPurifier', 'deviceType': 'airPurifier', 'createdAt': '2024-10-11T16:41:32.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12:46:49.000Z', 'attributes': {'customName': 'Nattbord', 'firmwareVersion': '1.1.001', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'STARKVIND Air purifier table', 'productCode': 'E2006', 'serialNumber': '9035EAFFFE25A0DA', 'fanMode': 'auto', 'fanModeSequence': 'lowMediumHighAuto', 'motorRuntime': 26, 'motorState': 10, 'filterAlarmStatus': False, 'filterElapsedTime': 5566, 'filterLifetime': 259200, 'childLock': False, 'statusLight': True, 'currentPM25': 9, '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', 'fanMode', 'fanModeSequence', 'motorState', 'childLock', 'statusLight']}, 'room': {'id': '34cc6a9a-6893-4af5-b67d-4da4d3fc39d7', 'name': 'Gastrum', 'color': 'ikea_yellow_no_24', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}] 2024-10-15 12:48:20.683 INFO (SyncWorker_24) [custom_components.dirigera_platform] -------------- 2024-10-15 12:48:20.683 INFO (SyncWorker_24) [custom_components.dirigera_platform] === END Devices JSON === 2024-10-15 12:48:42.897 DEBUG (MainThread) [custom_components.dirigera_platform] update called ut1brasflakt

frodr1k commented 1 month ago

I assume that this is what we are looking for:

{'id': '2184f057-42fb-4601-a8b0-89e6ba1d138c_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-01-26T17: 56: 00.000Z', 'isReachable': True, 'lastSeen': '2024-10-15T12: 36: 30.000Z', 'attributes': {'customName': 't2badrummaster', 'model': 'LYWSD03MMC', 'manufacturer': 'Xiaomi', 'firmwareVersion': '3001-0118', 'hardwareVersion': '15', 'serialNumber': 'A4C138B419CD7D06', 'batteryPercentage': 58, 'currentTemperature': 20.88, 'currentRH': 63, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00: 00', 'otaScheduleEnd': '00: 00'
    }, 'capabilities': {'canSend': [], 'canReceive': ['customName'
        ]
    }, 'room': {'id': 'da024210-4c5e-4b47-9fc5-4adcfbbaf93b', 'name': 'MasterBadrum', 'color': 'ikea_blue_no_63', 'icon': 'rooms_arm_chair'
    }, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False
}
sanjoyg commented 1 month ago

This can be fixed, but the xioami environment sensors is not sending the following mandatory info capabilities field required (type=value_error.missing) deviceSet field required (type=value_error.missing) remoteLinks field required (type=value_error.missing)

frodr1k commented 1 month ago

Thats intresting. Is it possible to fake that information/pre-populate it in some way to work around it? Since the HomeSmart app at least picks it up. It would be possible to use it?

sanjoyg commented 1 month ago

It is but it would be defeating the purpose of the integration

On Thu, Oct 17, 2024 at 1:22 PM frodr1k @.***> wrote:

Thats intresting. Is it possible to fake that information/pre-populate it in some way to work around it?

— Reply to this email directly, view it on GitHub https://github.com/sanjoyg/dirigera_platform/issues/84#issuecomment-2418817943, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2X3CQZQXPBPNQRQ7LMCY3Z35UCVAVCNFSM6AAAAABP7CVZQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJYHAYTOOJUGM . You are receiving this because you commented.Message ID: @.***>

frodr1k commented 1 month ago

Well for me who's not savy with python it defeats the idea of the integration that I can't fork this and fix it my self ;) If I knew how, I've would have forked it and hard coded it. :)

I see it as an checkbox option like "use non standard prepopulated values on Mija Sensors". But I definitly see the risk of creating a web of exceptions.

sanjoyg commented 1 month ago

Alrighty I will get it done

On Thu, Oct 17, 2024 at 2:34 PM frodr1k @.***> wrote:

Well for me who's not savy with python it defeats the idea of the integration that I can't fork this and fix it my self ;) If I knew how, I've would have forked it and hard coded it. :)

I see it as an checkbox option like "use non standard prepopulated values on Mija Sensors". But I definitly see the risk of creating a web of exceptions.

— Reply to this email directly, view it on GitHub https://github.com/sanjoyg/dirigera_platform/issues/84#issuecomment-2418973271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2X3CXJ5OLGVVTWF3JMYELZ354QFAVCNFSM6AAAAABP7CVZQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJYHE3TGMRXGE . You are receiving this because you commented.Message ID: @.***>

sanjoyg commented 1 month ago

Try release 2.0 should work, the battery level of xiaomi sensors wont be displayed. Its pending a merge on base library. Once merged will be available

frodr1k commented 1 month ago

works like a charm!!!! Where do I send the tip!?

tors 17 okt. 2024 kl. 16:33 skrev Sanjoy Ghosh @.***>:

Try release 2.0 should work, the battery level of xiaomi sensors wont be displayed. Its pending a merge on base library. Once merged will be available

— Reply to this email directly, view it on GitHub https://github.com/sanjoyg/dirigera_platform/issues/84#issuecomment-2419722051, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3IBOCPCGYBLA57WETL57DZ37DBXAVCNFSM6AAAAABP7CVZQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJZG4ZDEMBVGE . You are receiving this because you authored the thread.Message ID: @.***>

sanjoyg commented 1 month ago

:-) Enjoy! 2.1 release will add battery level sensor for Xiaomi sensors