Hi @Bieniu
I updated my shellies_discovery.py today for the first time since Oct 2020, it gave me a lot of errors about having to update my shelly device firmware, Ive updated all of them to the latest version now.
Im getting these errors in my HA logs when it starts, any idea what i need to do ?
Logger: homeassistant.util.logging
Source: util/logging.py:105
First occurred: 12:20:48 PM (90 occurrences)
Last logged: 12:21:15 PM
Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'name': 'Shelly Dimmer 2 D8BFC019CB0E Energy 0', 'state_topic': 'shellies/shellydimmer2-D8BFC019CB0E/light/0/energy', 'unit_of_measurement': 'kWh', 'value_template': '{{(value|float/60/1000)|round(2)}}', 'device_class': 'energy', 'availability_topic': 'shellies/shellydimmer2-D8BFC019CB0E/online', 'payload_available': 'true', 'payload_not_available': 'false', 'force_update': 'False', 'unique_id': 'shellydimmer2-d8bfc019cb0e-white-energy-0', 'qos': 0, 'device': {'identifiers': ['d8bfc019cb0e'], 'name': 'Shelly Dimmer 2 D8BFC019CB0E', 'model': 'Shelly Dimmer 2', 'sw_version': '20210909-150154/v1.11.4-DNSfix-ge6b2f6d', 'manufacturer': 'Allterco Robotics'}, 'state_class': 'total_increasing', 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 180, in async_discover config = schema(discovery_payload) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: value must be one of ['measurement'] for dictionary value @ data['state_class']
Exception in async_discover when dispatching 'mqtt_discovery_new_binary_sensor_mqtt': ({'name': 'Shelly Dimmer 2 D8BFC019EEFE Firmware Update', 'state_topic': 'shellies/shellydimmer2-D8BFC019EEFE/info', 'enabled_by_default': 'True', 'unique_id': 'shellydimmer2-d8bfc019eefe-firmware-update', 'qos': 0, 'device': {'identifiers': ['d8bfc019eefe'], 'name': 'Shelly Dimmer 2 D8BFC019EEFE', 'model': 'Shelly Dimmer 2', 'sw_version': '20210909-150154/v1.11.4-DNSfix-ge6b2f6d', 'manufacturer': 'Allterco Robotics'}, 'value_template': "{%if value_json['update'].has_update==true%}ON{%else%}OFF{%endif%}", 'availability_topic': 'shellies/shellydimmer2-D8BFC019EEFE/online', 'payload_available': 'true', 'payload_not_available': 'false', 'device_class': 'update', 'json_attributes_topic': 'shellies/shellydimmer2-D8BFC019EEFE/info', 'json_attributes_template': "{{value_json['update']|tojson}}", 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 180, in async_discover config = schema(discovery_payload) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: value must be one of ['battery', 'battery_charging', 'cold', 'connectivity', 'door', 'garage_door', 'gas', 'heat', 'light', 'lock', 'moisture', 'motion', 'moving', 'occupancy', 'opening', 'plug', 'power', 'presence', 'problem', 'safety', 'smoke', 'sound', 'vibration', 'window'] for dictionary value @ data['device_class']
Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'name': 'Shelly Dimmer 2 D8BFC019EEFE Energy 0', 'state_topic': 'shellies/shellydimmer2-D8BFC019EEFE/light/0/energy', 'unit_of_measurement': 'kWh', 'value_template': '{{(value|float/60/1000)|round(2)}}', 'device_class': 'energy', 'availability_topic': 'shellies/shellydimmer2-D8BFC019EEFE/online', 'payload_available': 'true', 'payload_not_available': 'false', 'force_update': 'False', 'unique_id': 'shellydimmer2-d8bfc019eefe-white-energy-0', 'qos': 0, 'device': {'identifiers': ['d8bfc019eefe'], 'name': 'Shelly Dimmer 2 D8BFC019EEFE', 'model': 'Shelly Dimmer 2', 'sw_version': '20210909-150154/v1.11.4-DNSfix-ge6b2f6d', 'manufacturer': 'Allterco Robotics'}, 'state_class': 'total_increasing', 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 180, in async_discover config = schema(discovery_payload) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: value must be one of ['measurement'] for dictionary value @ data['state_class']
Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'name': 'Shelly 1PM A4CF12F3D9F5 Energy 0', 'state_topic': 'shellies/shelly1pm-A4CF12F3D9F5/relay/0/energy', 'unit_of_measurement': 'kWh', 'value_template': '{{(value|float/60/1000)|round(2)}}', 'device_class': 'energy', 'availability_topic': 'shellies/shelly1pm-A4CF12F3D9F5/online', 'payload_available': 'true', 'payload_not_available': 'false', 'force_update': 'False', 'unique_id': 'shelly1pm-a4cf12f3d9f5-relay-energy-0', 'qos': 0, 'device': {'identifiers': ['a4cf12f3d9f5'], 'name': 'Shelly 1PM A4CF12F3D9F5', 'model': 'Shelly 1PM', 'sw_version': '20210909-145919/v1.11.4-DNSfix-ge6b2f6d', 'manufacturer': 'Allterco Robotics'}, 'state_class': 'total_increasing', 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 180, in async_discover config = schema(discovery_payload) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: value must be one of ['measurement'] for dictionary value @ data['state_class']
Exception in async_discover when dispatching 'mqtt_discovery_new_binary_sensor_mqtt': ({'name': 'Shelly 1PM A4CF12F3D9F5 Firmware Update', 'state_topic': 'shellies/shelly1pm-A4CF12F3D9F5/info', 'enabled_by_default': 'True', 'unique_id': 'shelly1pm-a4cf12f3d9f5-firmware-update', 'qos': 0, 'device': {'identifiers': ['a4cf12f3d9f5'], 'name': 'Shelly 1PM A4CF12F3D9F5', 'model': 'Shelly 1PM', 'sw_version': '20210909-145919/v1.11.4-DNSfix-ge6b2f6d', 'manufacturer': 'Allterco Robotics'}, 'value_template': "{%if value_json['update'].has_update==true%}ON{%else%}OFF{%endif%}", 'availability_topic': 'shellies/shelly1pm-A4CF12F3D9F5/online', 'payload_available': 'true', 'payload_not_available': 'false', 'device_class': 'update', 'json_attributes_topic': 'shellies/shelly1pm-A4CF12F3D9F5/info', 'json_attributes_template': "{{value_json['update']|tojson}}", 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 180, in async_discover config = schema(discovery_payload) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: value must be one of ['battery', 'battery_charging', 'cold', 'connectivity', 'door', 'garage_door', 'gas', 'heat', 'light', 'lock', 'moisture', 'motion', 'moving', 'occupancy', 'opening', 'plug', 'power', 'presence', 'problem', 'safety', 'smoke', 'sound', 'vibration', 'window'] for dictionary value @ data['device_class']