Hi
i have working autmation script:
alias: Heizungen runterfahren
trigger:
- at: ‘15:12:00’
platform: time
condition: []
action: - service: climate.set_temperature
data:
entity_id: climate.endrik
temperature: 14
I tried to use the same service in a script
heizung_aus:
sequence:
- data:
entitiy_id: climate.endrik
temperature: 14
service: climate.set_temperature
alias: Heizung Aus
This dioes not work for me:
In my log i can see the following error
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1130, in _safe_execute
await self._execute_service(handler, service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1143, in _execute_service
await handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/script.py”, line 123, in service_handler
context=service.context)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/script.py”, line 181, in async_turn_on
kwargs.get(ATTR_VARIABLES), context)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/script.py”, line 130, in async_run
await self._handle_action(action, variables, context)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/script.py”, line 172, in _handle_action
action, variables, context)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/script.py”, line 261, in _async_call_service
context=context
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py”, line 81, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1101, in async_call
processed_data = handler.schema(service_data)
File “/srv/homeassistant/lib/python3.5/site-packages/voluptuous/schema_builder.py”, line 267, in call
return self._compiled([], data)
File “/srv/homeassistant/lib/python3.5/site-packages/voluptuous/validators.py”, line 204, in _run
return self._exec(self._compiled, value, path)
File “/srv/homeassistant/lib/python3.5/site-packages/voluptuous/validators.py”, line 286, in _exec
raise e if self.msg is None else AllInvalid(self.msg, path=path)
File “/srv/homeassistant/lib/python3.5/site-packages/voluptuous/validators.py”, line 284, in _exec
v = func(path, v)
File “/srv/homeassistant/lib/python3.5/site-packages/voluptuous/schema_builder.py”, line 589, in validate_dict
return base_validate(path, iteritems(data), out)
File “/srv/homeassistant/lib/python3.5/site-packages/voluptuous/schema_builder.py”, line 427, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data[‘entitiy_id’]
Any idea?