seems like it is possible to support powerflow data without being HomKit
notice the is isHomKit: false
this probably results in the error from HA
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:367
Integration: Sensor (documentation, issues)
First occurred: 10:47:45 AM (2 occurrences)
Last logged: 1:13:29 PM
Error while setting up sems platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 367, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 582, in _async_add_entity
entity_name = entity.name
^^^^^^^^^^^
File "/config/custom_components/sems/sensor.py", line 169, in name
return f"Inverter {self.coordinator.data[self.sn]['name']}"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'name'
Possibly missign the name for the powerflow data entry? Possible fix not sure if set the name to some default value when missing?
This sounds like a duplicate of #92 which I have included some "dodgy fix" for if you want to fix it yourself on your machine for now while we wait for the next release which will have a proper fix
jq ".data.homKit" data.json
jq ".data.powerflow" data.json
seems like it is possible to support powerflow data without being HomKit notice the is
isHomKit: false
this probably results in the error from HA
Possibly missign the name for the powerflow data entry? Possible fix not sure if set the name to some default value when missing?