You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Zen Thermostat hooked up to Z2M for which I recently asked @Koenkk to add a mode (Koenkk/zigbee2mqtt#21960). The mode is Emergency Heating which is basically an auxiliary heating mode. Now that it's added, it shows up as unavailable in HA.
The log info below shows 'emergency_heating' as being an invalid HVAC mode so I'm hoping it can be added or at least translated to a different mode that is valid and appropriate.
I can give any other info as necessary.
What version of Home Assistant Core has the issue?
core-2024.4.4
What was the last working version of Home Assistant Core?
Traceback (most recent call last): File "/opt/ha/lib64/python3.12/site-packages/homeassistant/components/mqtt/models.py", line 378, in process_write_state_requests entity.async_write_ha_state() File "/opt/ha/lib64/python3.12/site-packages/homeassistant/helpers/entity.py", line 998, in async_write_ha_state self._async_write_ha_state() File "/opt/ha/lib64/python3.12/site-packages/homeassistant/helpers/entity.py", line 1119, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.__async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/ha/lib64/python3.12/site-packages/homeassistant/helpers/entity.py", line 1056, in __async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/ha/lib64/python3.12/site-packages/homeassistant/helpers/entity.py", line 1004, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/opt/ha/lib64/python3.12/site-packages/homeassistant/components/climate/__init__.py", line 328, in __getattribute__ return super().__getattribute__(__name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/ha/lib64/python3.12/site-packages/homeassistant/components/climate/__init__.py", line 464, in state return HVACMode(hvac_mode).value # type: ignore[unreachable] ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/enum.py", line 744, in __call__ return cls.__new__(cls, value) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/enum.py", line 1158, in __new__ raise ve_exc ValueError: 'emergency_heating' is not a valid HVACMode
Additional information
No response
The text was updated successfully, but these errors were encountered:
Hey there @emontnemery, @jbouwh, mind taking a look at this issue as it has been labeled with an integration (mqtt) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of mqtt can trigger bot actions by commenting:
@home-assistant close Closes the issue.
@home-assistant rename Awesome new title Renames the issue.
@home-assistant reopen Reopen the issue.
@home-assistant unassign mqtt Removes the current integration label and assignees on the issue, add the integration domain after the command.
@home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
@home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
The problem
I have a Zen Thermostat hooked up to Z2M for which I recently asked @Koenkk to add a mode (Koenkk/zigbee2mqtt#21960). The mode is Emergency Heating which is basically an auxiliary heating mode. Now that it's added, it shows up as unavailable in HA.
The log info below shows 'emergency_heating' as being an invalid HVAC mode so I'm hoping it can be added or at least translated to a different mode that is valid and appropriate.
I can give any other info as necessary.
What version of Home Assistant Core has the issue?
core-2024.4.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Mqtt
Link to integration documentation on our website
https://www.home-assistant.io/integrations/mqtt
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Traceback (most recent call last): File "/opt/ha/lib64/python3.12/site-packages/homeassistant/components/mqtt/models.py", line 378, in process_write_state_requests entity.async_write_ha_state() File "/opt/ha/lib64/python3.12/site-packages/homeassistant/helpers/entity.py", line 998, in async_write_ha_state self._async_write_ha_state() File "/opt/ha/lib64/python3.12/site-packages/homeassistant/helpers/entity.py", line 1119, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.__async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/ha/lib64/python3.12/site-packages/homeassistant/helpers/entity.py", line 1056, in __async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/ha/lib64/python3.12/site-packages/homeassistant/helpers/entity.py", line 1004, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/opt/ha/lib64/python3.12/site-packages/homeassistant/components/climate/__init__.py", line 328, in __getattribute__ return super().__getattribute__(__name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/ha/lib64/python3.12/site-packages/homeassistant/components/climate/__init__.py", line 464, in state return HVACMode(hvac_mode).value # type: ignore[unreachable] ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/enum.py", line 744, in __call__ return cls.__new__(cls, value) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/enum.py", line 1158, in __new__ raise ve_exc ValueError: 'emergency_heating' is not a valid HVACMode
Additional information
No response
The text was updated successfully, but these errors were encountered: