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

AC Unit with additional Power command topic #133556

Open
thomas41587 opened this issue Dec 19, 2024 · 1 comment
Open

AC Unit with additional Power command topic #133556

thomas41587 opened this issue Dec 19, 2024 · 1 comment

Comments

@thomas41587
Copy link

The problem

I am trying to add my AC unit into Home Assistant.
I got everything working (temperature, fan, mode, swing). So I can set those in HA and my AC unit recognizes it and the other way round does also work.
BUT: My AC unit does have a "power" topic to set the device on/off. It does NOT have the "mode" "off". Instead you simply send "On"/"Off" to the "Power" topic and set the "mode" independently.
I cannot find a way to get that working as HA seems to treat any "mode" that is not "Off" as power=on. And also "Mode=off" seems to be the power off command. But this does not work with my unit :-(

What version of Home Assistant Core has the issue?

core-2024.12.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

mqtt

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

mqtt:
  - climate:
      name: Schlafzimmer
      unique_id: schlafzimmer_klimaanlage
      availability: 
        topic: "MHI-AC-Ctrl-SZ/cmd_received"
        payload_available: "o.k."
      current_temperature_topic: "MHI-AC-Ctrl-SZ/Troom"
      device:
        manufacturer: "Mitsubishi"
        identifiers: "123schlafzimmer"
        suggested_area: "Schlafzimmer"
      modes:
        - "auto"
        - "heat"
        - "cool"
        - "dry"
        - "fan_only"
      swing_modes:
        - "1"
        - "2"
        - "3"
        - "4"
        - "Swing"
      fan_modes:
        - "1"
        - "2"
        - "3"
        - "4"
      power_command_topic: "MHI-AC-Ctrl-SZ/set/Power"
      power_command_template: >
        {% if value == 'on' %}On{% else %}Off{% endif %}
      payload_on: "On"
      payload_off: "Off"
      mode_command_topic: "MHI-AC-Ctrl-SZ/set/Mode"
      mode_command_template: >
        {% if value == "auto" %}Auto
        {% elif value == "dry" %}Dry
        {% elif value == "cool" %}Cool
        {% elif value == "fan_only" %}Fan
        {% elif value == "heat" %}Heat
        {% else %}Off{% endif %}
      mode_state_topic: "MHI-AC-Ctrl-SZ/Mode"
      mode_state_template: >
        {% if value == "Auto" %}auto
        {% elif value == "Dry" %}dry
        {% elif value == "Cool" %}cool
        {% elif value == "Fan" %}fan_only
        {% elif value == "Heat" %}heat
        {% else %}off{% endif %}
      temperature_command_topic: "MHI-AC-Ctrl-SZ/set/Tsetpoint"
      temperature_state_topic: "MHI-AC-Ctrl-SZ/Tsetpoint"
      fan_mode_command_topic: "MHI-AC-Ctrl-SZ/set/Fan"
      fan_mode_state_topic: "MHI-AC-Ctrl-SZ/Fan"
      swing_mode_command_topic: "MHI-AC-Ctrl-SZ/set/Vanes"
      swing_mode_state_topic: "MHI-AC-Ctrl-SZ/Vanes"
      precision: 1.0

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @emontnemery, @jbouwh, @bdraco, 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants