sanjoyg / dirigera_platform

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

1.8.2 Tretakt Smart Plug no longer showing status #79

Closed s3than closed 1 month ago

s3than commented 1 month ago

Switch is no longer showing status in the UI

The icon in Hass switches to Off however the light is still on..

2024-10-10 05:32:53.427 DEBUG (Thread-171) [custom_components.dirigera_platform] rcvd message : {"id":"3ab476c6-0b34-4c9c-b694-504db50c6127","time":"2024-10-10T05:32:53.000Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"5ce8eaf0-f949-4b19-9b3a-7c496615b724_1","type":"outlet","deviceType":"outlet","createdAt":"2024-09-08T07:34:16.000Z","isReachable":true,"lastSeen":"2024-10-10T05:32:53.000Z","attributes":{"isOn":false},"remoteLinks":[]}}
2024-10-10 05:32:53.427 DEBUG (Thread-171) [custom_components.dirigera_platform] device type of message outlet
2024-10-10 05:32:53.427 DEBUG (Thread-171) [custom_components.dirigera_platform] Setting 5ce8eaf0-f949-4b19-9b3a-7c496615b724_1 reachable as True
2024-10-10 05:32:53.427 DEBUG (Thread-171) [custom_components.dirigera_platform] setting is_on  to False
2024-10-10 05:32:53.428 DEBUG (Thread-171) [custom_components.dirigera_platform] id='5ce8eaf0-f949-4b19-9b3a-7c496615b724_1' relation_id=None type='outlet' device_type='outlet' created_at=datetime.datetime(2024, 9, 8, 7, 34, 16, tzinfo=datetime.timezone.utc) is_reachable=True last_seen=datetime.datetime(2024, 10, 10, 5, 32, 23, tzinfo=datetime.timezone.utc) attributes=OutletAttributes(custom_name='Roof Light', model='TRETAKT Smart plug', manufacturer='IKEA of Sweden', firmware_version='2.4.4', hardware_version='1', serial_number='8C65A3FFFE6F465D', product_code='E2217', ota_status='upToDate', ota_state='readyToCheck', ota_progress=0, ota_policy='autoUpdate', ota_schedule_start=datetime.time(0, 0), ota_schedule_end=datetime.time(0, 0), is_on=False, startup_on_off=<StartupEnum.START_PREVIOUS: 'startPrevious'>) capabilities=Capabilities(can_send=[], can_receive=['customName', 'isOn', 'lightLevel', 'childLock', 'statusLight']) room=Room(id='82b278fa-d8b3-49b1-b430-76713fbb725e', name="Room", color='ikea_pink_no_4', icon='rooms_bed') device_set=[] remote_links=[] is_hidden=False dirigera_client=<dirigera.hub.hub.Hub object at 0x79079bb2f050>
2024-10-10 05:32:53.433 DEBUG (MainThread) [custom_components.dirigera_platform] update called Roof Light
2024-10-10 05:33:01.892 DEBUG (MainThread) [custom_components.dirigera_platform] update called Upstairs Light
2024-10-10 05:33:01.892 DEBUG (MainThread) [custom_components.dirigera_platform] update called Outside Lights
2024-10-10 05:33:01.892 DEBUG (MainThread) [custom_components.dirigera_platform] update called Entryway
2024-10-10 05:33:01.892 DEBUG (MainThread) [custom_components.dirigera_platform] update called Roof Light
2024-10-10 05:33:01.893 DEBUG (MainThread) [custom_components.dirigera_platform] update called Office Roof Light
2024-10-10 05:33:17.810 DEBUG (Thread-171) [custom_components.dirigera_platform] rcvd message : {"id":"a5b290dc-e0f7-45b6-8263-f76019bdbbe5","time":"2024-10-10T05:33:17.000Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"5ce8eaf0-f949-4b19-9b3a-7c496615b724_1","type":"outlet","deviceType":"outlet","createdAt":"2024-09-08T07:34:16.000Z","isReachable":true,"lastSeen":"2024-10-10T05:33:17.000Z","attributes":{"isOn":true},"remoteLinks":[]}}
2024-10-10 05:33:17.810 DEBUG (Thread-171) [custom_components.dirigera_platform] device type of message outlet
2024-10-10 05:33:17.810 DEBUG (Thread-171) [custom_components.dirigera_platform] Setting 5ce8eaf0-f949-4b19-9b3a-7c496615b724_1 reachable as True
2024-10-10 05:33:17.810 DEBUG (Thread-171) [custom_components.dirigera_platform] setting is_on  to True
2024-10-10 05:33:17.810 DEBUG (Thread-171) [custom_components.dirigera_platform] id='5ce8eaf0-f949-4b19-9b3a-7c496615b724_1' relation_id=None type='outlet' device_type='outlet' created_at=datetime.datetime(2024, 9, 8, 7, 34, 16, tzinfo=datetime.timezone.utc) is_reachable=True last_seen=datetime.datetime(2024, 10, 10, 5, 32, 53, tzinfo=datetime.timezone.utc) attributes=OutletAttributes(custom_name='Roof Light', model='TRETAKT Smart plug', manufacturer='IKEA of Sweden', firmware_version='2.4.4', hardware_version='1', serial_number='8C65A3FFFE6F465D', product_code='E2217', ota_status='upToDate', ota_state='readyToCheck', ota_progress=0, ota_policy='autoUpdate', ota_schedule_start=datetime.time(0, 0), ota_schedule_end=datetime.time(0, 0), is_on=True, startup_on_off=<StartupEnum.START_PREVIOUS: 'startPrevious'>) capabilities=Capabilities(can_send=[], can_receive=['customName', 'isOn', 'lightLevel', 'childLock', 'statusLight']) room=Room(id='82b278fa-d8b3-49b1-b430-76713fbb725e', name="Room", color='ikea_pink_no_4', icon='rooms_bed') device_set=[] remote_links=[] is_hidden=False dirigera_client=<dirigera.hub.hub.Hub object at 0x79079bb2f050>
samimasad commented 1 month ago

also confirm the same issue

sanjoyg commented 1 month ago

Can you provide the JSON dump please

sg26565 commented 1 month ago

The status is not displayed because the ikea_outlet_switch_sensor class has no is_on property. I've created PR #81 to fix this.

sanjoyg commented 1 month ago

Merged and closing the issue