J’ai tenté de refaire les associations mais cella ne marche pas. Je met le volet en mode association et puis je tente la commande :
Et j’ai une erreur avec le message suivant :
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/rfplayer/__init__.py:87
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 22 juillet 2022 à 16:12:53 (6 occurrences)
Last logged: 15:03:32
[140300723191520] 'rfplayer'
[140300764316720] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/template/cover.py", line 344, in async_close_cover
await self.async_run_script(self._close_script, context=self._context)
File "/usr/src/homeassistant/homeassistant/helpers/template_entity.py", line 407, in async_run_script
return await script.async_run(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1513, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 405, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 449, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 472, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/rfplayer/__init__.py", line 87, in async_send_command
if not await hass.data[DOMAIN][RFPLAYER_PROTOCOL].send_command_ack(
KeyError: 'rfplayer'
J’ai bien la sauvegarde complète de vendredi mais en restaurant ca ne marche pas non plus Je suis perdu là je dois avouer.
EDIT : Voici le log complet de ce matin
2022-07-25 06:54:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140310738892016] Received {'type': 'execute_script', 'sequence': [{'service': 'rfplayer.send_command', 'data': {'command': 'ASSOC', 'protocol': 'RTS', 'device_address': 'A1', 'automatic_add': True}}], 'id': 130}
2022-07-25 06:54:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=rfplayer, service=send_command, service_data=command=ASSOC, protocol=RTS, device_address=A1, automatic_add=True>
2022-07-25 06:54:01 DEBUG (MainThread) [custom_components.rfplayer] Rfplayer send command for {'command': 'ASSOC', 'protocol': 'RTS', 'device_address': 'A1', 'automatic_add': True}
2022-07-25 06:54:01 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event call_service[L]: domain=rfplayer, service=send_command, service_data=command=ASSOC, protocol=RTS, device_address=A1, automatic_add=True>)
2022-07-25 06:54:01 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f9caa783e40> checked out from pool
2022-07-25 06:54:01 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'rfplayer'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/rfplayer/__init__.py", line 87, in async_send_command
if not await hass.data[DOMAIN][RFPLAYER_PROTOCOL].send_command_ack(
KeyError: 'rfplayer'
2022-07-25 06:54:01 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140310738892016] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 636, in handle_execute_script
await script_obj.async_run(msg.get("variables"), context=context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1513, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 405, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 449, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 472, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/rfplayer/__init__.py", line 87, in async_send_command
if not await hass.data[DOMAIN][RFPLAYER_PROTOCOL].send_command_ack(
KeyError: 'rfplayer'
2022-07-25 06:54:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140310738892016] Sending {"id":130,"type":"result","success":false,"error":{"code":"unknown_error","message":"Unknown error"}}