## Description
Ever since I installed a Hass 2023.12 beta version, EC stopped wā¦orking. It complains about non-existing states (they DO exist), and about 'not enough values to unpack (expected 2, got 1)' upon override state changes - and ends up doing nothing.
## Configuration
```
mtn_living:
friendly_name: Motion Living
sensor: binary_sensor.motion_living_occupancy
sensor_type: duration
entity: light.living_wandlichten
# block_timeout: 1
service_data:
brightness_pct: 50
night_mode:
start_time: '00:00:00'
end_time: sunrise
service_data:
brightness_pct: 1
override_states_off: ["off", "unavailable"]
overrides:
- binary_sensor.day
- light.living_luster
- media_player.tv_living
```
## Steps to reproduce
Steps to reproduce the behavior:
1. Nothing special - just install a 2023.12 beta
## Expected behavior
This is how the component _should_ work:
1. Control the entities and act on state changes (what else ?)
## Actual Behaviour
This is what _actually_ happened:
1. Does nothing, just generates nonsensical errors
## Logs
```
This error originated from a custom integration.
Logger: custom_components.entity_controller.mtn_living
Source: custom_components/entity_controller/__init__.py:800
Integration: Entity Controller (documentation)
First occurred: 17:15:22 (3 occurrences)
Last logged: 17:26:12
Potential configuration error: State Entity (l) does not exist (yet). Please check for spelling and typos. 'NoneType' object has no attribute 'state'
AND
Logger: homeassistant.helpers.event
Source: helpers/event.py:296
First occurred: 17:15:22 (5 occurrences)
Last logged: 17:26:12
Error while dispatching event for binary_sensor.day to <Job track state_changed event ['binary_sensor.day', 'light.living_luster', 'media_player.tv_living'] HassJobType.Callback <function async_track_state_change.<locals>.state_change_listener at 0x7f381a8516c0>>
Error while dispatching event for binary_sensor.day to <Job track state_changed event ['binary_sensor.day', 'light.keuken_lichten'] HassJobType.Callback <function async_track_state_change.<locals>.state_change_listener at 0x7f381a851e40>>
Error while dispatching event for binary_sensor.day to <Job track state_changed event ['binary_sensor.day', 'media_player.tv_eetkamer'] HassJobType.Callback <function async_track_state_change.<locals>.state_change_listener at 0x7f381a852480>>
Error while dispatching event for light.living_luster to <Job track state_changed event ['binary_sensor.day', 'light.living_luster', 'media_player.tv_living'] HassJobType.Callback <function async_track_state_change.<locals>.state_change_listener at 0x7f381a8516c0>>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 296, in _async_dispatch_entity_id_event
hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 671, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 240, in state_change_listener
state_change_dispatcher(event)
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 227, in state_change_dispatcher
hass.async_run_hass_job(
File "/usr/src/homeassistant/homeassistant/core.py", line 671, in async_run_hass_job
hassjob.target(*args)
File "/config/custom_components/entity_controller/__init__.py", line 631, in override_state_change
self.enable()
File "/usr/local/lib/python3.11/site-packages/transitions/extensions/nesting.py", line 816, in trigger_event
res = self._trigger_event(_model, _trigger, None, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/transitions/extensions/nesting.py", line 1016, in _trigger_event
tmp = self.events[_trigger].trigger(_model, self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/transitions/extensions/nesting.py", line 112, in trigger
return _machine._process(func)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/transitions/core.py", line 1172, in _process
return trigger()
^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/transitions/extensions/nesting.py", line 127, in _trigger
res = self._process(event_data)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/transitions/extensions/nesting.py", line 143, in _process
if trans.execute(event_data):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/transitions/core.py", line 272, in execute
self._change_state(event_data)
File "/usr/local/lib/python3.11/site-packages/transitions/extensions/nesting.py", line 276, in _change_state
func()
File "/usr/local/lib/python3.11/site-packages/transitions/extensions/nesting.py", line 205, in scoped_enter
self.enter(event_data)
File "/usr/local/lib/python3.11/site-packages/transitions/core.py", line 124, in enter
event_data.machine.callbacks(self.on_enter, event_data)
File "/usr/local/lib/python3.11/site-packages/transitions/core.py", line 1107, in callbacks
self.callback(func, event_data)
File "/usr/local/lib/python3.11/site-packages/transitions/core.py", line 1128, in callback
func(*event_data.args, **event_data.kwargs)
File "/config/custom_components/entity_controller/__init__.py", line 855, in on_enter_idle
self.do_transition_behaviour(CONF_ON_ENTER_IDLE)
File "/config/custom_components/entity_controller/__init__.py", line 1751, in do_transition_behaviour
self.turn_off_control_entities()
File "/config/custom_components/entity_controller/__init__.py", line 1302, in turn_off_control_entities
self.call_service(e, "turn_off")
File "/config/custom_components/entity_controller/__init__.py", line 1537, in call_service
domain, e = entity.split(".")
^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
```
## Version
```
Hass 2023.12.0b5
EC v9.6.1
```