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
72.67k stars 30.42k forks source link

climate.set_temperature does not respond to hvac_mode argument #28673

Closed RonJ103 closed 4 years ago

RonJ103 commented 4 years ago

Home Assistant release with the issue:

Last working Home Assistant release (if known): Unknown

Operating environment (Hass.io/Docker/Windows/etc.):

hassio on docker on NUC8 running ubuntu **Integration:** climate **Description of problem:** ``` - service: climate.set_temperature data: entity_id: - climate.shop_heater - climate.finishing_room_heater temperature: 70 hvac_mode: 'heat' ``` When this service is run, the temperature changes, but the heater does not change from OFF to HEAT. It has an updated setpoint, but stays off. **Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):** ```yaml ``` **Traceback (if applicable):** ``` ``` **Additional information:**
Santobert commented 4 years ago

Please share some more information. E.g. what type of heater are you using? What's in the logs?

RonJ103 commented 4 years ago

It is a generic_thermostat. No errors/warning are generated, it just doesn't turn on. It stays in the OFF state.

RonJ103 commented 4 years ago

The climate.set_hvac_mode service does work, so there is a workaround. If that is what is needed, that is fine, but then I don't understand the purpose of the hvac_mode argument to the set_temperature service. This is how the thermostat is defined in my config.yaml:

climate:
  - platform: generic_thermostat
    name: Finishing Room Heater
    heater: switch.finishing_room_heater_eufy
    target_sensor: sensor.shop_finishing_rm_avg_temp
    min_temp: 50
    max_temp: 75
    ac_mode: False
    # target_temp: 70
    cold_tolerance: 1
    hot_tolerance: 1
    min_cycle_duration:
      seconds: 60
    keep_alive:
      minutes: 10
    # initial_hvac_mode: "off"
    away_temp: 65
    precision: 0.1

  - platform: generic_thermostat
    name: Shop Heater
    heater: switch.shop_heater
    target_sensor: sensor.shop_avg_temp_sans_finishing_rm
    min_temp: 50
    max_temp: 75
    ac_mode: False
    # target_temp: 70
    cold_tolerance: 1
    hot_tolerance: 1
    min_cycle_duration:
      seconds: 60
    keep_alive:
      minutes: 10
    away_temp: 65
    precision: 0.1
stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.