home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.59k stars 30.75k forks source link

Not all hvac_modes available for Heat-pump in Tuya integration #126374

Open dusker33 opened 1 month ago

dusker33 commented 1 month ago

The problem

Heat-Pump Aquaviva AVH-18-25S It has next modes: Cooling Heating DHW (hot water heating) Heating + DHW Cooling + DHW

All of them I see in Smart-Life app (and it's work there). But in HA I see only - [<HVACMode.OFF: 'off'>, <HVACMode.HEAT: 'heat'>] Even when I change mode manualy at the Heat-Pump control panel I keep seeing the same in HA

<template TemplateState(<state climate.heat_pump=off; hvac_modes=[<HVACMode.OFF: 'off'>, <HVACMode.HEAT: 'heat'>], min_temp=8.0, max_temp=60.0, target_temp_step=1.0, current_temperature=44.0, temperature=45.0, friendly_name=Heat pump, supported_features=385 @ 2024-09-21T10:04:43.371307+03:00>)>

Now I can only turn on and off my device and change temperature. But couldn't change mode.

What version of Home Assistant Core has the issue?

core-2024.9.2

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

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tuya` 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 tuya` 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)


tuya documentation tuya source (message by IssueLinks)

Pharkie commented 1 month ago

I have a Tuya panel heater and the device only exposes [<HVACMode.OFF: 'off'>, <HVACMode.HEAT: 'heat'>].

I cannot set the target temperature in an Automation, despite being able to set the target temp in the Dashboard card?

Messa1 commented 1 month ago

@Pharkie I had the same problem. You need to set over action: climate.set_temperature the temp.

- id: '1727513430390'
  alias: Heizung an
  description: Um 6:00 an
  trigger:
  - platform: time
    at: 06:00:00
  condition: []
  action:
  - action: climate.turn_on
    metadata: {}
    data: {}
    target:
      device_id: 1d78af4937d80cd4a2e510d516a926c9
  - action: climate.set_temperature
    target:
      device_id: 1d78af4937d80cd4a2e510d516a926c9
    data:
      temperature: 20
      hvac_mode: heat
  mode: single`
Pharkie commented 1 month ago

That works, thanks! Can even be done in the visual automation editor. The key is to use the "Climate" target not a "Device" one.

Screenshot 2024-09-29 at 12 50 33

The YAML that works for my automation:


alias: Shower room heater on after sunrise
description: ""
trigger:
  - platform: sun
    event: sunrise
    offset: "1:00:00"
condition: []
action:
  - action: climate.turn_on
    metadata: {}
    data: {}
    target:
      device_id: cff714f31d414335315b23f34acbafff
  - action: climate.set_temperature
    metadata: {}
    data:
      hvac_mode: heat
      temperature: 23
    target:
      device_id: cff714f31d414335315b23f34acbafff
wolfjank commented 2 weeks ago

I have got the same problem, well the temperature ist working. But the hvac modes are not working. Does anyone know how to handle that problem?

Pharkie commented 2 weeks ago

Are you using climate.turn_on, rather than the device hvac?

wolfjank commented 2 weeks ago

Are you using climate.turn_on, rather than the device hvac?

IMG_8396

These are Not the correct values. Here you can see the values in the smart-Life app:

image

Pharkie commented 2 weeks ago

Yes, sounds like your particular device has not yet been added fully by the Home Assistant integration...