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.55k stars 30.35k forks source link

Netatmo: can't reset a single valve to scheduled mode #46147

Closed ScratMan closed 3 years ago

ScratMan commented 3 years ago

The problem

Hello, I'm facing an issue with Home Assistant controlling 3 Netatmo smart radiator valves in 3 different rooms. I've set some automations in order to set the temperature of a valve to 7°C whenever the corresponding room's window is left open for more than 3 minutes; and switch it back to scheduled mode when the window is closed for more than 1mn. So the radiator will not heat while window is open.

Unfortunately, when I do this kind of sequence :

Why can't I set the scheduled mode on one single valve ? is it a Netatmo API limitation or a limitation of the integration ? In the Netatmo Energy app I can delete the manual setting of a single valve and it will revert to scheduled temperature while leaving the other valves in manual mode. Why Home Assistant cant' ?

What is version of Home Assistant Core has the issue?

2021.1.5

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

Netatmo

Link to integration documentation on our website

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

Example YAML snippet

# Put your YAML below this line
alias: Fenêtre ouverte - Chauffage ch. Parentale
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.fenetre_chambre_parentale
    to: 'on'
    for: '0:03:00'
    from: 'off'
condition:
  - condition: and
    conditions:
      - condition: not
        conditions:
          - condition: state
            entity_id: climate.netatmo_couloir
            state: 'off'
            attribute: preset_mode
      - condition: time
        before: '12:00:00'
        after: '5:00:00'
action:
  - service: climate.set_temperature
    data:
      temperature: 7
    entity_id: climate.netatmo_chambre_parentale
mode: parallel
max: 10

alias: Fenêtre ouverte - Chauffage ch. Amis
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.fenetre_chambre_damis
    to: 'on'
    for: '0:03:00'
    from: 'off'
condition:
  - condition: and
    conditions:
      - condition: not
        conditions:
          - condition: state
            entity_id: climate.netatmo_couloir
            state: 'off'
            attribute: preset_mode
      - condition: time
        before: '12:00:00'
        after: '5:00:00'
action:
  - service: climate.set_temperature
    data:
      temperature: 7
    entity_id: climate.netatmo_chambre_d_amis
mode: parallel
max: 10

alias: Fenêtre fermée - Chauffage ch. Parentale
description: ''
trigger:
  - platform: state
    to: 'off'
    from: 'on'
    entity_id: binary_sensor.fenetre_chambre_parentale
    for: '00:01:00'
condition:
  - condition: and
    conditions:
      - condition: not
        conditions:
          - condition: state
            entity_id: climate.netatmo_couloir
            state: 'off'
            attribute: preset_mode
      - condition: state
        entity_id: climate.netatmo_chambre_parentale
        state: manual
        attribute: preset_mode
action:
  - service: climate.set_preset_mode
    data:
      preset_mode: Schedule
    entity_id: climate.netatmo_chambre_parentale
mode: parallel
max: 10

Anything in the logs that might be useful for us?

# Put your logs below this line
probot-home-assistant[bot] commented 3 years ago

netatmo documentation netatmo source (message by IssueLinks)

probot-home-assistant[bot] commented 3 years ago

Hey there @cgtobi, mind taking a look at this issue as its been labeled with an integration (netatmo) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

cgtobi commented 3 years ago

You are setting the preset which affects the whole home rather than in individual room/valve. I suggest to turn the valve on/off instead.

ScratMan commented 3 years ago

How could I miss this ? That was so simple 😄