Hi,
The sensor “restricted_reason” is missing the state value ‘all_missions_completed’ that could occur for EPOS Mowers.
It would also be great to have the function in “Start Mowing” to choose which mission/area to start. Today if you try to start a mower with EPOS that is ready will generate an exception like this:
Logger: homeassistant
Source: components/sensor/init.py:637
First occurred: 12:05:33 (171 occurrences)
Last logged: 13:20:19
Error doing job: Exception in callback AutomowerDataUpdateCoordinator.callback({'3ac23974-b63...-3944bdd8444c': MowerAttribut...rk_areas=None), '685a7572-a64...-e87e1faa4b7c': MowerAttribut...g_height=50)}), '7405baf6-3a4...-4c54a64df2e2': MowerAttribut...rk_areas=None), '835311c4-eda...-4f92a0fd7fd5': MowerAttribut...g_height=63)}), ...})
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/components/husqvarna_automower/coordinator.py", line 53, in callback
self.async_set_updated_data(ws_data)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 450, in async_set_updated_data
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 492, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1009, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1015, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 637, in state
raise ValueError(
ValueError: Sensor sensor.filippa_restricted_reason provides state value 'all_missions_completed', which is not in the list of options provided