My panel is running spanos2/r202246/04 and I am on Wez’s version of the Integration, so I am a version behind yours.
So, when I go into the Span webpage into the Circuits page, I do have direct control of the circuits and can label Non-essential/Nice to have/Essential - all things I could do before within HA integration. I was actually starting to build a custom Lovelace page with a circuit breaker panel and controls for Span, but now it doesn’t seem worth it.
Checking the logs I am getting a couple of errors:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/span_panel/switch.py", line 94, in async_setup_entry
if span_panel.circuits.is_user_controllable(id):
File "/config/custom_components/span_panel/span_panel.py", line 308, in is_user_controllable
return self.json_data[id][CIRCUITS_IS_USER_CONTROLLABLE]
KeyError: 'is_user_controllable'
Source: custom_components/span_panel/span_panel.py:263
Integration: Span Panel (documentation, issues)
First occurred: January 28, 2023 at 12:49:35 PM (14 occurrences)
Last logged: 3:08:23 AM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 316, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 121, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 381, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 556, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 562, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 855, in state
value = self.native_value
File "/config/custom_components/span_panel/sensor.py", line 146, in native_value
value = self.entity_description.value_fn(span_panel.circuits, self.id)
File "/config/custom_components/span_panel/sensor.py", line 50, in <lambda>
value_fn=lambda circuits, id: abs(cast(float, circuits.power(id))),
File "/config/custom_components/span_panel/span_panel.py", line 263, in power
return self.json_data[id][CIRCUITS_POWER]
KeyError: '012f2a6af2f146d7bf6d4e170a7d23c7'
I am not a coder by trade, so I’m not sure if something broke in the integration or if Span stopped sending the entities.