|
发表于 2019-2-9 19:07:42
|
显示全部楼层
我的是报错这样的。新手,一直没找到问题。
2019-02-09 11:05:38 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall script.all_on (c:97cebf3d7949456a9dd8875b2c84994f)>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1138, in _safe_execute
await self._execute_service(handler, service_call)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1151, in _execute_service
await handler.func(service_call)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/script.py", line 123, in service_handler
context=service.context)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/script.py", line 181, in async_turn_on
kwargs.get(ATTR_VARIABLES), context)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/script.py", line 299, in _async_call_service
context=context
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/service.py", line 85, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1109, in async_call
processed_data = handler.schema(service_data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 267, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 589, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: value must be at least 2 for dictionary value @ data['slot']
|
|