Hi all,
I’m trying to create a remote.send.command trigger on my Broadlink RM4 emitter. The script works when triggered but I get a “command not found, exiting sequence” error message. Not sure what’s going on?
The script is as follows:
alias: CK Fan Power
sequence:
- service: remote.send_command
data:
command: >-
b64:
JgBsAHBwHFUcVB0cHFUcVB1UHB0cHB0cHB0cHRxUHB0cHRxUHRwcHRwcHVQcVRxUHVQcVB0cHQAEWHFwHVQcVB0cHFUcVB5THB0cHB4bHB0cHRxUHRwcHRxUHRwcHRwcHVQcVR5SHVQcVB0cHQANBQ==
target:
area_id: ck
entity_id: remote.rm4_ck_remote
mode: single
Error logs show this:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/apple_tv/remote.py:64
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 10:04:28 AM (6 occurrences)
Last logged: 10:12:16 AM
[2911705288] Command not found. Exiting sequence
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 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 290, in service_handler
await script_entity.async_turn_on(
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 398, in async_turn_on
await coro
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 428, in _async_run
return await self.script.async_run(script_vars, 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 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, 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 964, 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/apple_tv/remote.py", line 64, in async_send_command
raise ValueError("Command not found. Exiting sequence")
ValueError: Command not found. Exiting sequence
Logger: homeassistant.components.script.ck_fan_power
Source: components/apple_tv/remote.py:64
Integration: Script (documentation, issues)
First occurred: 10:04:28 AM (7 occurrences)
Last logged: 10:19:48 AM
CK Fan Power: Error executing script. Unexpected error for call_service at pos 1: Command not found. Exiting sequence
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 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, 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 964, 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/apple_tv/remote.py", line 64, in async_send_command
raise ValueError("Command not found. Exiting sequence")
ValueError: Command not found. Exiting sequence