FreeTHX / wakepsx_on_bt-ha

HomeAssistant component to Wake Ps3, Ps4 and Ps5 on BlueTooth
4 stars 0 forks source link

not working for me via home assistant. #1

Open mihaiaka opened 2 months ago

mihaiaka commented 2 months ago

hi there. nice project/idea. I'm not able to start it tho' I'm getting the below, would you be able to assist?

Logger: homeassistant.setup Source: setup.py:404 First occurred: 16:49:08 (1 occurrences) Last logged: 16:49:08

Error during setup of component wakepsx_on_bt Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 404, in _async_setup_component result = await task ^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/wakepsx_on_bt/init.py", line 69, in setup hass.services.async_register( File "/usr/src/homeassistant/homeassistant/core.py", line 2522, in async_register self._hass.verify_event_loop_thread("async_register") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'wakepsx_on_bt' calls async_register from a thread at custom_components/wakepsx_on_bt/init.py, line 69: hass.services.async_register(. Please report it to the author of the 'wakepsx_on_bt' custom integration.

mihaiaka commented 2 months ago

also, would this work with an esp32 Bluetooth proxy? as my HA machine is in the attic, I'm planning to have an esp32 board behind the tv/cabinet in the living room to turn ON the PS3, PS4, and PS5.