monty68 / uniled

Universal Light Controller Integration for Home Assistant
MIT License
77 stars 11 forks source link

Add support for SP614E #42

Closed nahmed96 closed 11 months ago

nahmed96 commented 11 months ago

It would be great if you could add support for SP614E controllers!

I installed the non beta version of uniLED and home assistant detected my two controllers. I got an error when I added the controller. I updated my uniLED version to v2 beta 3 but now I cannot detect the controllers. I have tried to restart home assistant many times, restarted the controllers, nothing works.

nahmed96 commented 11 months ago

Update: I managed to discover the controller by re-downloading uniLED v1. After the controllers were discovered, I updated to v2 beta 3 and tried to configure the controller. After a while I got the error that "device not supported".

monty68 commented 11 months ago

It would be helpful if you can provide some debug logs?

nahmed96 commented 11 months ago

Here is the log 2023-12-19 04:08:46.273 DEBUG (MainThread) [custom_components.uniled.config_flow] Setting discovery: <home_assistant_bluetooth.models.BluetoothServiceInfoBleak object at 0x7f8e1cd540> 2023-12-19 04:08:46.279 DEBUG (MainThread) [custom_components.uniled.config_flow] Setting discovery: <home_assistant_bluetooth.models.BluetoothServiceInfoBleak object at 0x7f8e1cd840> 2023-12-19 04:09:15.005 WARNING (SyncWorker_7) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-12-19 04:09:15.006 WARNING (SyncWorker_7) [homeassistant.loader] We found a custom integration uniled which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-12-19 04:09:24.653 DEBUG (MainThread) [custom_components.uniled.config_flow] Setting discovery: <home_assistant_bluetooth.models.BluetoothServiceInfoBleak object at 0x7f8e1cd540> 2023-12-19 04:09:26.466 DEBUG (MainThread) [custom_components.uniled.config_flow] User Input: {'address': 'FF:21:12:29:74:B4'} 2023-12-19 04:09:26.466 DEBUG (MainThread) [custom_components.uniled.lib.classes] TV: Init Channel 0 2023-12-19 04:09:26.467 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Init BLE Device (Model: TV) 2023-12-19 04:09:26.467 DEBUG (MainThread) [custom_components.uniled.lib.ble_model] 20563 : 0102 in 0a20ff21122974b4 2023-12-19 04:09:26.467 DEBUG (MainThread) [custom_components.uniled.lib.ble_model] 20563 : 0410 in 0a20ff21122974b4 2023-12-19 04:09:26.468 DEBUG (MainThread) [custom_components.uniled.lib.ble_model] 20563 : 1710 in 0a20ff21122974b4 2023-12-19 04:09:26.468 DEBUG (MainThread) [custom_components.uniled.lib.ble_model] 20563 : 1b10 in 0a20ff21122974b4 2023-12-19 04:09:26.468 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Resolve model = SP107E? 2023-12-19 04:09:26.468 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Update 2023-12-19 04:09:26.468 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Connecting; RSSI: -127 2023-12-19 04:09:27.463 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Connected 2023-12-19 04:09:27.463 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Read Characteristic: 0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 2): Vendor specific 2023-12-19 04:09:27.464 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Write Characteristic: 0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 2): Vendor specific 2023-12-19 04:09:27.464 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Subscribe to notifications: 0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 2): Vendor specific 2023-12-19 04:09:27.593 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Sending 1 command(s) 2023-12-19 04:09:27.594 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Sending command: [00000002] 0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 2): Vendor specific 2023-12-19 04:09:27.739 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Awaiting status notification 2023-12-19 04:09:32.741 WARNING (MainThread) [custom_components.uniled.lib.ble_device] TV: Timeout waiting for status notification 2023-12-19 04:09:32.741 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Resolve model = SP107E? 2023-12-19 04:09:32.741 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Update 2023-12-19 04:09:32.741 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Sending 1 command(s) 2023-12-19 04:09:32.742 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Sending command: [00000002] 0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 2): Vendor specific 2023-12-19 04:09:32.907 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Awaiting status notification 2023-12-19 04:09:37.908 WARNING (MainThread) [custom_components.uniled.lib.ble_device] TV: Timeout waiting for status notification 2023-12-19 04:09:37.909 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Resolve model = SP110E? 2023-12-19 04:09:37.909 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Update 2023-12-19 04:09:37.910 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Sending 1 command(s) 2023-12-19 04:09:37.910 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Sending command: [00000010] 0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 2): Vendor specific 2023-12-19 04:09:38.074 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Awaiting status notification 2023-12-19 04:09:43.076 WARNING (MainThread) [custom_components.uniled.lib.ble_device] TV: Timeout waiting for status notification 2023-12-19 04:09:43.077 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Stop 2023-12-19 04:09:43.077 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Disconnecting from device 2023-12-19 04:09:43.083 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Stopped notifications from device 2023-12-19 04:09:45.828 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Device disconnected (expected: True); RSSI: -127 2023-12-19 04:09:45.828 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] TV: Disconnected from device 2023-12-19 04:09:55.267 DEBUG (MainThread) [custom_components.uniled.lib.ble_device] Device Destroyed 2023-12-19 04:09:55.267 DEBUG (MainThread) [custom_components.uniled.lib.classes] Channel 0 Destroyed 2023-12-19 06:08:43.529 ERROR (MainThread) [homeassistant.components.unifiprotect.data] Auth error while updating

monty68 commented 11 months ago

Thanks, this will be fixed in the next release

nahmed96 commented 11 months ago

Thank you so much! Some more updates, I tried to rename the controllers to SP614, but it did not help to add them. I was able to add them by renaming them to SP611 and downgrading to the non beta software, then updating before adding the controllers. I was able to add the controllers, but it would be stuck at initializing since it would identify the controllers as the wrong model.

monty68 commented 11 months ago

Please install v2.0.0 Beta 4 and retest.

nahmed96 commented 11 months ago

Hi sir after the latest update, the LED's worked! Thank you again