Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Thermostat (Z2M) not displaying Emergency Heating mode #114884

Closed
88fingerslukee opened this issue Apr 4, 2024 · 2 comments
Closed

MQTT Thermostat (Z2M) not displaying Emergency Heating mode #114884

88fingerslukee opened this issue Apr 4, 2024 · 2 comments

Comments

@88fingerslukee
Copy link

88fingerslukee commented Apr 4, 2024

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

@home-assistant
Copy link

home-assistant bot commented Apr 4, 2024

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.

(message by CodeOwnersMention)


mqtt documentation
mqtt source
(message by IssueLinks)

@jbouwh
Copy link
Contributor

jbouwh commented Apr 5, 2024

Please open an issue here:
https://github.com/Koenkk/zigbee2mqtt/issues

This is not an issue with MQTT or Home Assistant.

The error log is clear about what is wrong.

@jbouwh jbouwh added the wontfix label Apr 5, 2024
@jbouwh jbouwh closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants