Trace automation question

Why is this False ? should be ‘TRUE’ ? (its a NOT condition)

image

conditions:
  - condition: trigger
    id: hvert 15. min
  - type: is_not_plugged_in
    condition: device
    device_id: cd44f5a44599966eac2d27eb3b8f0943
    entity_id: binary_sensor.bittenmobil_oplader_2
    domain: binary_sensor
  - type: is_not_plugged_in
    condition: device
    device_id: 07fd1cc835f24a93b3cd80f7647c048e
    entity_id: binary_sensor.rhmobil_is_charging
    domain: binary_sensor
  - condition: not
    conditions:
      - condition: state
        entity_id: climate.termostat_sovevaerlse
        state: '18'
        attribute: temperature
sequence:
  - service: climate.set_temperature
    target:
      entity_id: climate.termostat_sovevaerlse
    data:
      temperature: '{{ states.input_number.minimum_temperatur.state }}'

Attributes aren’t necessarily strings, so try this instead:

  - condition: not
    conditions:
      - condition: state
        entity_id: climate.termostat_sovevaerlse
        state: 18
        attribute: temperature

Please note that I have removed the single quotes around 18.

1 Like

Thanks it works. :slight_smile:

I use the UI and there is no quotes - but quotes in yaml – hmm ? a bug?