Automation not fired also if conditions are met

Hi all, here my first post. I just installed ha few days ago and I’m really enjoying it. I started to play with automations but the one I created is not fired also if conditions are met:

alias: Cucina riscaldamento scena
description: ""
trigger: []
  - type: is_temperature
    condition: device
    device_id: e2f3f086cbe80cf58b3254fb218f97af
    entity_id: sensor.cucina_inside_temperature
    domain: sensor
    below: 24
    above: 0
  - condition: device
    device_id: 41f4b1ab2cea135cd8d7b4ce2c3fcdfa
    domain: device_tracker
    entity_id: device_tracker.redmi_note_9_pro
    type: is_home
  - service: scene.turn_on
      entity_id: scene.riscaldamento
    metadata: {}
mode: single

In fact I want to turn on conditioner if the temperature is below 24 degrees and I’m at hone

What I’m doing wrong?
Thanks in advice

You may need to use triggers rather than conditions. Automations without triggers will never run.

I wouldn’t suggest using device trigger, device condition or device actions.
They should work but sometimes they can not work.

If you want to continue this automation then use states and call services on the entities.

If you want to use something better then I would suggest setting up an generic thermostat to make your life easier to maintain.

About why it didn’t work, your trigger is empty, so nothing is triggering the automation.
You probably want both your conditions to be your triggers also.
So when you arrive home, or when temperature goes below.

I changed to:

alias: Riscaldamento cucina spento per 24°
description: ""
  - platform: state
      - climate.cucina
    attribute: current_temperature
    to: "24"
condition: []
  - service: scene.turn_on
      entity_id: scene.riscaldamento_spento
    metadata: {}
mode: single

but conditioning is not shutting down

Pardon me… in this case it should be a numeric trigger.

1 Like