Climate.set_operation_mode

Hi guys

im using the broadlink.py custom component to control my underfloor heating - its been working great - however after a power cut on Sunday - the thermostat went to an off state and the automation I had did not fire.

I have tried the following automation but the set operation doesn’t seem to work

  - alias: EnSuite underfloor heating on
    trigger:
      - platform: time
        at: '06:30:00'
    condition:
    - condition: time
      weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
    action:
    - service: climate.set_operation_mode
      data :
        entity_id:
           - climate.MasterEnsuiteUnderfloorHeating
        operation_mode: Heat
    - service: climate.set_temperature
      data :
        entity_id:
           - climate.MasterEnsuiteUnderfloorHeating
        temperature: 25

  - alias: EnSuite underfloor heating off
    trigger:
      - platform: time
        at: '07:30:00'
    condition:
    - condition: time
      weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
    action:
    - service: climate.set_operation_mode
      data :
        entity_id:
           - climate.MasterEnsuiteUnderfloorHeating
        operation_mode: Off
    - service: climate.set_temperature
      data :
        entity_id:
           - climate.MasterEnsuiteUnderfloorHeating
        temperature: 15

Do you have any errors in your log?

1 Like

Also, I think the operation_mode should be all lower case. But to be sure, look at climate.MasterEnsuiteUnderfloorHeating on the States page. It should have an attribute named operation_list. What values does it have? Those are the valid values for operation_mode for your climate entity. You should use one of those values, exactly as is (including using exactly the same letter case.)

1 Like

Brilliant! thanks man - also had to have it in single quotes

no errors in logs - but was a case issue