Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

В HA 0.110.4 не работают pwm выходы #14

Open
lupin-de-mid opened this issue Jun 2, 2020 · 0 comments
Open

В HA 0.110.4 не работают pwm выходы #14

lupin-de-mid opened this issue Jun 2, 2020 · 0 comments

Comments

@lupin-de-mid
Copy link

2020-06-02 13:23:42 ERROR (MainThread) [homeassistant.util.logging] Exception in async_discover when dispatching 'mqtt_discovery_new_light_mqtt': ({'name': 'megad_192_168_2_11 p12 (PWM)', 'platform': 'mqtt', 'command_topic': 'homeassistant/light/megad_192_168_2_11/p12/on', 'state_topic': 'homeassistant/light/megad_192_168_2_11/p12/state', 'command_on_template': '{%- if brightness is defined -%}{{ brightness | d }}{%- else -%}255{%- endif -%}', 'command_off_template': '0', 'state_template': '{%- if value| float > 0 -%}on{%- else -%}off{%- endif -%}', 'brightness_template': '{{ value }}'},)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/init.py", line 52, in async_discover
config = PLATFORM_SCHEMA(discovery_payload)
File "/usr/local/lib/python3.7/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.7/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.7/site-packages/voluptuous/validators.py", line 283, in _exec
v = func(v)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in call
return self._compiled([], data)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
return schema(data)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/init.py", line 30, in validate_mqtt_light
return schemasvalue[CONF_SCHEMA]
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in call
return self._compiled([], data)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['command_on_template']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant