monty68 / uniled

Universal Light Controller Integration for Home Assistant
MIT License
67 stars 8 forks source link

Doesnt detect SP621E #60

Open Ivannivi opened 7 months ago

Ivannivi commented 7 months ago

Version of the custom_component

2.2.4

Configuration

frontend: themes: !include_dir_merge_named themes

climate:

Logs home-assistant_2024-02-15T06-12-14.384Z.log



## Describe the bug
Doesnt detect SP621E
![image](https://github.com/monty68/uniled/assets/132831589/92465d06-b2b5-4e87-96f1-02754150142e)
monty68 commented 7 months ago

The log gives me no information regarding your SP device to track down the problem. Please provide more details.

ruvasik commented 4 months ago

I got same problem since last 2-3 versions

2024-05-25 18:24:30.079 DEBUG (MainThread) [custom_components.uniled] *** Setup UniLED BLE Device: FF:23:06:03:21:F3: SP621E v3 - {'transport': 'ble', 'address': 'FF:23:06:03:21:F3', 'model': 'SP621E'} AdvertisementData(local_name='SP621E', manufacturer_data={20563: b'\r\x00\xff#\x06\x03!\xf3'}, service_uuids=['0000e0ff-0000-1000-8000-00805f9b34fb'], rssi=-69)
2024-05-25 18:24:30.080 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Inititalizing (SP621E)...
2024-05-25 18:24:30.080 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Set model as 'SP621E' by SPLED (BanlanX)
2024-05-25 18:24:30.080 DEBUG (MainThread) [custom_components.uniled.lib.channel] Inititalized: channel_0 (0xffff605d7bf0)
2024-05-25 18:24:30.080 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Updated 'FF:23:06:03:21:F3' advertisement; RSSI: -69
AdvertisementData(local_name='SP621E', manufacturer_data={20563: b'\r\x00\xff#\x06\x03!\xf3'}, service_uuids=['0000e0ff-0000-1000-8000-00805f9b34fb'], rssi=-69)
2024-05-25 18:24:30.081 DEBUG (MainThread) [custom_components.uniled] *** Awaiting UniLED Device: SP621E, first response...
2024-05-25 18:24:30.081 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Update!
2024-05-25 18:24:30.081 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Update - Send State Query... (retrys=0)
2024-05-25 18:24:30.081 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Send 1 command(s), attempt 1 of 1...
2024-05-25 18:24:30.082 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Connecting 'FF:23:06:03:21:F3'; RSSI: -69
2024-05-25 18:25:50.114 ERROR (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Device not found, no longer in range, or poor RSSI: -69
2024-05-25 18:25:50.115 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Send command failed!
2024-05-25 18:25:50.116 DEBUG (MainThread) [custom_components.uniled.coordinator] Finished fetching SP621E data in 80.035 seconds (success: False)
2024-05-25 18:25:50.116 WARNING (MainThread) [custom_components.uniled] SP621E: First update attempt failed!
2024-05-25 18:25:50.117 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Stopped
2024-05-25 18:25:50.118 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] Checking support for: 'FF:23:06:03:21:F3' (SP621E)... AdvertisementData(local_name='SP621E', manufacturer_data={20563: b'\r\x00\xff#\x06\x03!\xf3'}, service_uuids=['0000e0ff-0000-1000-8000-00805f9b34fb'], rssi=-69)
2024-05-25 18:25:50.119 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] Device 'SP621E' (FF:23:06:03:21:F3) is supported!
2024-05-25 18:25:51.658 DEBUG (MainThread) [custom_components.uniled.coordinator] SP621E: Coordinator destroyed
2024-05-25 18:25:51.658 DEBUG (MainThread) [custom_components.uniled.lib.device] SP621E: Deleted Device
2024-05-25 18:25:51.659 DEBUG (MainThread) [custom_components.uniled.lib.channel] Deleted: channel_0
2024-05-25 18:27:11.845 DEBUG (MainThread) [custom_components.uniled] *** Setup UniLED BLE Device: FF:23:06:03:21:F3: SP621E v3 - {'transport': 'ble', 'address': 'FF:23:06:03:21:F3', 'model': 'SP621E'} AdvertisementData(local_name='SP621E', manufacturer_data={20563: b'\r\x00\xff#\x06\x03!\xf3'}, service_uuids=['0000e0ff-0000-1000-8000-00805f9b34fb'], rssi=-69)
2024-05-25 18:27:11.846 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Inititalizing (SP621E)...
2024-05-25 18:27:11.846 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Set model as 'SP621E' by SPLED (BanlanX)
2024-05-25 18:27:11.847 DEBUG (MainThread) [custom_components.uniled.lib.channel] Inititalized: channel_0 (0xffff5dcc3290)
2024-05-25 18:27:11.847 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Updated 'FF:23:06:03:21:F3' advertisement; RSSI: -69
AdvertisementData(local_name='SP621E', manufacturer_data={20563: b'\r\x00\xff#\x06\x03!\xf3'}, service_uuids=['0000e0ff-0000-1000-8000-00805f9b34fb'], rssi=-69)
2024-05-25 18:27:11.848 DEBUG (MainThread) [custom_components.uniled] *** Awaiting UniLED Device: SP621E, first response...
2024-05-25 18:27:11.848 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Update!
2024-05-25 18:27:11.849 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Update - Send State Query... (retrys=0)
2024-05-25 18:27:11.849 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Send 1 command(s), attempt 1 of 1...
2024-05-25 18:27:11.850 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Connecting 'FF:23:06:03:21:F3'; RSSI: -69
2024-05-25 18:28:31.873 ERROR (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Device not found, no longer in range, or poor RSSI: -69
2024-05-25 18:28:31.874 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Send command failed!
2024-05-25 18:28:31.874 DEBUG (MainThread) [custom_components.uniled.coordinator] Finished fetching SP621E data in 80.026 seconds (success: False)
2024-05-25 18:28:31.875 WARNING (MainThread) [custom_components.uniled] SP621E: First update attempt failed!
2024-05-25 18:28:31.876 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] SP621E: Stopped
2024-05-25 18:28:31.877 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] Checking support for: 'FF:23:06:03:21:F3' (SP621E)... AdvertisementData(local_name='SP621E', manufacturer_data={20563: b'\r\x00\xff#\x06\x03!\xf3'}, service_uuids=['0000e0ff-0000-1000-8000-00805f9b34fb'], rssi=-69)
2024-05-25 18:28:31.878 DEBUG (MainThread) [custom_components.uniled.lib.ble.device] Device 'SP621E' (FF:23:06:03:21:F3) is supported!
2024-05-25 18:28:33.387 DEBUG (MainThread) [custom_components.uniled.coordinator] SP621E: Coordinator destroyed
2024-05-25 18:28:33.388 DEBUG (MainThread) [custom_components.uniled.lib.device] SP621E: Deleted Device
2024-05-25 18:28:33.388 DEBUG (MainThread) [custom_components.uniled.lib.channel] Deleted: channel_0