Temperature value cannot be processed as a number ( automation job) [SOLVED]

use a state trigger with a condition that checks if the value is below 80. I.e. no templates.

I tried this with no luck.

  - platform: state
      - sensor.living_room_sensor_temperature
  - condition: numeric_state
    entity_id: sensor.living_room_sensor_temperature
    below: 80
  - service: switch.turn_on
      entity_id: switch.dingtian_relay18879_switch_1
    data: {}
mode: single

that will work fine. The state needs to change, it’s not just going to trigger when you reload or create the automation. You have to wait for the value to change.

1 Like

Thanks, I think I have it working now I made the trigger just be every 1 min and the condition the temp so it doesn’t have to wait for the temp to change for it to check the condition.