Open dusker33 opened 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!
(message by CodeOwnersMention)
tuya documentation tuya source (message by IssueLinks)
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?
@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`
That works, thanks! Can even be done in the visual automation editor. The key is to use the "Climate" target not a "Device" one.
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
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?
Are you using climate.turn_on, rather than the device hvac?
Are you using climate.turn_on, rather than the device hvac?
These are Not the correct values. Here you can see the values in the smart-Life app:
Yes, sounds like your particular device has not yet been added fully by the Home Assistant integration...
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