You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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']
The text was updated successfully, but these errors were encountered:
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']
The text was updated successfully, but these errors were encountered: