Hello HasQT,
yes i have an issue with MQTT. I get the following error messages in the main HA log:
Logger: homeassistant.util.logging
Source: util/logging.py:156
First occurred: October 3, 2022 at 10:31:33 (3 occurrences)
Last logged: October 3, 2022 at 10:31:33
Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'name': 'SMA Time Inverter', 'state_topic': 'homeassistant/sbfspot_PVName/sbfspot_PVNumber', 'value_template': '{{ value_json.InvTime | as_timestamp | timestamp_custom( %d/%m/%Y %H:%M:%S ) | default() }}', 'unique_id': 'PVNumber_InvTime', 'enabled_by_default': 'true', 'entity_category': 'diagnostic', 'icon': 'mdi:clock', 'device': {'identifiers': ['HAOS-SBFspot-Sensors'], 'name': 'HAOS-SBFspot', 'model': 'SB 2500HF-30', 'manufacturer': 'SMA', 'sw_version': '02.30.06.R'}, 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 348, in async_discover config = discovery_schema(discovery_payload) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 232, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 351, in _exec v = func(v) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable return schema(data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: invalid template (TemplateSyntaxError: unexpected '%') for dictionary value @ data['value_template']
Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'name': 'SMA Sun Rise', 'state_topic': 'homeassistant/sbfspot_PVName/sbfspot_PVNumber', 'value_template': '{{ value_json.SunRise | as_timestamp | timestamp_custom( %d/%m/%Y %H:%M:%S ) | default() }}', 'unique_id': 'PVNumber_SunRise', 'enabled_by_default': 'true', 'icon': 'mdi:weather-sunny', 'device': {'identifiers': ['HAOS-SBFspot-Sensors'], 'name': 'HAOS-SBFspot', 'model': 'SB 2500HF-30', 'manufacturer': 'SMA', 'sw_version': '02.30.06.R'}, 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 348, in async_discover config = discovery_schema(discovery_payload) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 232, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 351, in _exec v = func(v) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable return schema(data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: invalid template (TemplateSyntaxError: unexpected '%') for dictionary value @ data['value_template']
Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'name': 'SMA Sun Set', 'state_topic': 'homeassistant/sbfspot_PVName/sbfspot_PVNumber', 'value_template': '{{ value_json.SunSet | as_timestamp | timestamp_custom( %d/%m/%Y %H:%M:%S ) | default() }}', 'unique_id': 'PVNumber_SunSet', 'enabled_by_default': 'true', 'icon': 'mdi:weather-hazy', 'device': {'identifiers': ['HAOS-SBFspot-Sensors'], 'name': 'HAOS-SBFspot', 'model': 'SB 2500HF-30', 'manufacturer': 'SMA', 'sw_version': '02.30.06.R'}, 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 348, in async_discover config = discovery_schema(discovery_payload) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 232, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 351, in _exec v = func(v) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable return schema(data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: invalid template (TemplateSyntaxError: unexpected '%') for dictionary value @ data['value_template']
I have just found the the device Info page. So i do not know if it work before.
Frank