SMA Energy Meter error log

Hi there
Not sure if this is a problem with the (SMA Energy Meter (2021.9.2)) add-on or HA-core.
Ive uninstalled the add-on and deleted the config in the Mosquitto broker integration and still this error comes up.
Is there a way to reset the new energy dash board config?
Not sure what to do next any help thank you in advance.
Nicko

System Health
version: core-2021.9.2
installation_type: Home Assistant OS
dev: false
hassio: true
docker: true
user: root
virtualenv: false
python_version: 3.9.6
os_name: Linux
os_version: 5.10.61
arch: aarch64
timezone: Australia/Sydney

host_os: Home Assistant OS 6.3
update_channel: stable
supervisor_version: supervisor-2021.09.0
docker_version: 20.10.7
disk_total: 113.9 GB
disk_used: 14.5 GB
healthy: true
supported: true
board: odroid-n2
supervisor_api: ok
version_api: ok
installed_addons: Actron Air Conditioner (0.98), ESPHome (2021.8.2), File editor (5.3.3), Home Assistant Google Drive Backup (0.104.3), Mosquitto broker (6.0.1), Samba share (9.5.1), TasmoAdmin (0.15.0), Terminal & SSH (9.1.3), InfluxDB (4.2.1), Grafana (7.2.0), SMA Energy Meter (2021.9.2)

Logger: homeassistant.util.logging
Source: util/logging.py:105
First occurred: 8:25:59 AM (2 occurrences)
Last logged: 8:25:59 AM

Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'name': 'pconsume_5', 'device_class': 'power', 'state_topic': 'SMA-EM/status/0000000000/pconsume_5', 'unit_of_measurement': 'W', 'unique_id': '0000000000_pconsume_5', 'device': {'identifiers': ['sma_em_0000000000'], 'name': 'SMA Energy Meter', 'model': 'Energy Meter', 'manufacturer': 'SMA'}, 'state_class': 'energy', '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/validators.py", line 218, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.9/site-packages/voluptuous/validators.py", line 341, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.9/site-packages/voluptuous/validators.py", line 337, in _exec v = func(v) 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 817, in validate_callable return schema(data) 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', 'total_increasing'] for dictionary value @ data['state_class']
Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'name': 'psupply_5', 'device_class': 'power', 'state_topic': 'SMA-EM/status/0000000000/psupply_5', 'unit_of_measurement': 'W', 'unique_id': '0000000000_psupply_5', 'device': {'identifiers': ['sma_em_0000000000'], 'name': 'SMA Energy Meter', 'model': 'Energy Meter', 'manufacturer': 'SMA'}, 'state_class': 'energy', '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/validators.py", line 218, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.9/site-packages/voluptuous/validators.py", line 341, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.9/site-packages/voluptuous/validators.py", line 337, in _exec v = func(v) 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 817, in validate_callable return schema(data) 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', 'total_increasing'] for dictionary value @ data['state_class']

Do you have a link to the addon?

I can only find an SMA energy meter integration, and it does not use mqtt.

You probably need to delete the retained SMA energy meter discovery messages from your MQTT broker. Use MQTT Explorer to do that.

Hi Tob
That one could be the SMA solar inverter integration
Thanks for looking into this https://github.com/datenschuft/SMA-EM

That is an addon not an integration.

Ok Tom thanks

Thanks Tom couldn’t of done it with out your help.

  1. Install MQTT Explorer

  2. Enter MQTT credentials

  3. Search for the sensor entity info and delete it.

Did and how you install it in HA? Thanks

You can install MQTT Explorer on a PC on your network (it is available for Linux, Windows and Mac).

Though someone did recently release an addon for MQTT explorer, so that is an option now too:

2 Likes

This is by far the best way. I always hated trying to find MQTT Explorer when I needed it. Portable binaries wit installers… When it’s in HA, you can just open a new tab.

Just a shame it does not work on iOS devices :stuck_out_tongue_closed_eyes:

1 Like

@tom_l my MQTT Broker can only run when I stay on this. By changing into other tabs or apps, it turns off.
What is wrong with me? How can I set up a MQTT connection correctly in MQTT Explorer? I installed MQTT within HA. Thanks