I’ve set up a couple of Broadlink RM switches and they fire manually from the states section of the developer tab but I can’t get them working inside an automation.
Using the following and triggered from the automation page gives no errors but doesn’t cause the broadlink to emit either. I’ve used time as the trigger because I needed something there for it to show up in automations so I could test it manually.
- id: testbroadlink
alias: broadlinktest
trigger:
platform: time
at: '21:20:00'
action:
- data:
entity_id: switch_turnon
service : switch.turn_on
The logs entry gives me:
Logger: homeassistant.components.automation.automation_0_3
Source: core.py:1262
Integration: Automation (documentation, issues)
First occurred: 14:49:23 (27 occurrences)
Last logged: 15:46:00
While executing automation automation.automation_0_3
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/automation/init.py”, line 430, in async_trigger await self.action_script.async_run(variables, trigger_context) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 802, in async_run await asyncio.shield(run.async_run()) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 183, in async_run await self._async_step(log_exceptions=False) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 191, in _async_step await getattr( File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 380, in _async_call_service_step await service_task File “/usr/src/homeassistant/homeassistant/core.py”, line 1262, in async_call processed_data = handler.schema(service_data) File “/usr/local/lib/python3.8/site-packages/voluptuous/validators.py”, line 208, in call return self._exec((Schema(val) for val in self.validators), v) File “/usr/local/lib/python3.8/site-packages/voluptuous/validators.py”, line 287, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File “/usr/local/lib/python3.8/site-packages/voluptuous/validators.py”, line 283, in _exec v = func(v) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 272, in call return self._compiled([], data) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 817, in validate_callable return schema(data) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 272, in call return self._compiled([], data) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 594, in validate_dict return base_validate(path, iteritems(data), out) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data[‘enitity_id’]