i’m trying to create a card to control my ceiling fans.
In Developer Tools/Services these commands work fine, when i call the service and turns on/off the light on the ceiling fan.
tap_action:
action: call-service
service: remote.send_command
service_data: #### <----- I changed this
command: Light
entity_id: remote.ur1_livingroom_remote #### <----- I changed this
2022-02-15 04:31:27 ERROR (MainThread) [homeassistant.components.broadlink.remote] Failed to call remote.send_command: You need to specify a device
2022-02-15 04:31:27 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140469649177040] You need to specify a device
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 190, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1630, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1667, 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 self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, 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 705, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/broadlink/remote.py", line 221, in async_send_command
code_list = self._extract_codes(commands, subdevice)
File "/usr/src/homeassistant/homeassistant/components/broadlink/remote.py", line 141, in _extract_codes
raise ValueError("You need to specify a device")
ValueError: You need to specify a device