Continuous monitoring

Hello,
currently I have an automation that every 5 minutes checks some sensors (external/internal temp.solar panel production etc.) and decide to turn on HVAC and another that turn off.
I would like to have an automation that continuously monitor these sensors without any trigger, just starts with HA startup and based on the sensors value changes, change the HVAC settings (increase temperature or turn on/off).

is there something I can implement to reach this goal?

This is just a normal automation, what’s your problem?

Turn your conditions into triggers, but keep the conditions. It’ll behave the same way without the minutely check.

Triggers are ’ continuously’ monitored…isn’t that the whole point of a trigger ? :thinking:

Cambridge Dictionary::

Trigger noun (START)

an event or situation, etc. that causes something to start

So the trigger shouldn’t fire every 5 minutes, but instead trigger on external/internal temp.solar panel production etc (with or without some conditions) and use that to turn off/on stuff…

Sounds like you need some template triggers :wink:

Maybe I haven’t understood well the logic behind, but the automation requires the WHEN (a trigger). I set time trigger, every 5 minutes, if all the sensors has “true” value, then do something.

I don’t want time trigger, I would like HA costantly monitor the sensors and try to use the max of solar power production turning one by one my 4 HVAC, on/off or increase/decrease their temperature.
If I set the trigger base on sensor changes, it run when the change happen, once triggered nothing more happen again.
Doesn’t seems to me so flexible.

That’s a state trigger, it constantly monitors the state of the supplied entity.

Then you’re doing something wrong, state triggers constantly monitor and trigger. They do not only fire once.

I suggest you post your automation, we can help you turn it into an automation that constantly monitors.

this is what I set to turn on HVAC (another similar to power off and another 2 to increase and decrease themperature)

alias: LG Accendo Estate
description: ""
trigger:
  - platform: time_pattern
    hours: "10"
    minutes: /5
  - platform: time_pattern
    hours: "11"
    minutes: /5
  - platform: time_pattern
    hours: "12"
    minutes: /5
  - platform: time_pattern
    hours: "13"
    minutes: /5
  - platform: time_pattern
    hours: "14"
    minutes: /5
  - platform: time_pattern
    hours: "15"
    minutes: /5
  - platform: time_pattern
    hours: "16"
    minutes: /5
  - platform: time_pattern
    hours: "17"
    minutes: /5
  - platform: time_pattern
    hours: "18"
    minutes: /5
  - platform: time_pattern
    hours: "19"
    minutes: /5
condition:
  - condition: and
    conditions:
      - type: is_power
        condition: device
        device_id: d514a5d3d4a82a309795d28be28f6152
        entity_id: a34ecab1f1b05a2bb5fbdbb47a961c9f
        domain: sensor
        above: 450
        enabled: true
      - type: is_temperature
        condition: device
        device_id: c9efcbce06d3f7e80664e679b7c0f0c7
        entity_id: 3811ae9b6b3110b0b70f31031c3788c3
        domain: sensor
        above: 28
action:
  - alias: Condizione per camera 1
    if:
      - condition: and
        conditions:
          - condition: numeric_state
            entity_id: sensor.shellyem_gms_channel_1_power
            above: 450
          - condition: numeric_state
            entity_id: climate.lg_camera_1
            attribute: current_temperature
            above: 26
          - type: is_temperature
            condition: device
            device_id: c9efcbce06d3f7e80664e679b7c0f0c7
            entity_id: 3811ae9b6b3110b0b70f31031c3788c3
            domain: sensor
            above: 27
          - condition: device
            device_id: 4ce5382c59b8d5e14c62b1c490bac9f3
            domain: climate
            entity_id: 1e72224344f7e715fa61fedefc052fb7
            type: is_hvac_mode
            hvac_mode: "off"
        enabled: true
    then:
      - target:
          entity_id:
            - climate.lg_camera_1
        data:
          hvac_mode: cool
          temperature: 26
        action: climate.set_temperature
      - metadata: {}
        data:
          title: Accendo LG Camera 1 - New - Estate
          message: >-
            '{{now().strftime("%Y-%m-%d------%H:%M:%S"), 'AvanzoEnergia',
            states('sensor.shellyem_gms_channel_1_power')}}'
        action: notify.persistent_notification
      - metadata: {}
        data:
          title: Accendo LG Camera 1 - New - Estate
          message: "'{{now().strftime(\"%Y-%m-%d------%H:%M:%S\")}}"
        action: notify.celldomex
  - delay:
      hours: 0
      minutes: 1
      seconds: 0
      milliseconds: 0
  - alias: Condizione per camera 2
    if:
      - condition: and
        conditions:
          - condition: numeric_state
            entity_id: sensor.shellyem_gms_channel_1_power
            above: 450
          - condition: numeric_state
            entity_id: climate.lg_camera_2_ac
            attribute: current_temperature
            above: 26
          - type: is_temperature
            condition: device
            device_id: c9efcbce06d3f7e80664e679b7c0f0c7
            entity_id: 3811ae9b6b3110b0b70f31031c3788c3
            domain: sensor
            above: 27
          - condition: device
            device_id: d879b68eee0b949b092388a1f1da5c40
            domain: climate
            entity_id: 9158658682312a2d09aa86c7bd5d2f2f
            type: is_hvac_mode
            hvac_mode: "off"
        enabled: true
    then:
      - target:
          entity_id:
            - climate.lg_camera_2_ac
        data:
          hvac_mode: cool
          temperature: 26
        action: climate.set_temperature
      - metadata: {}
        data:
          title: Accendo LG Camera 2 - New
          message: >-
            '{{now().strftime("%Y-%m-%d------%H:%M:%S"), 'AvanzoEnergia',
            states('sensor.shellyem_gms_channel_1_power')}}'
        action: notify.persistent_notification
      - metadata: {}
        data:
          title: Accendo LG Camera 2 - New - Estate
          message: "'{{now().strftime(\"%Y-%m-%d------%H:%M:%S\")}}"
        action: notify.celldomex
  - delay:
      hours: 0
      minutes: 1
      seconds: 0
      milliseconds: 0
  - alias: Condizione per 3
    if:
      - condition: and
        conditions:
          - condition: numeric_state
            entity_id: sensor.shellyem_gms_channel_1_power
            above: 450
          - condition: numeric_state
            entity_id: climate.lg_3_ac
            attribute: current_temperature
            above: 26
          - type: is_temperature
            condition: device
            device_id: c9efcbce06d3f7e80664e679b7c0f0c7
            entity_id: 3811ae9b6b3110b0b70f31031c3788c3
            domain: sensor
            above: 27
          - condition: device
            device_id: c4da887b32786f74198ebf2faf3a8dc6
            domain: climate
            entity_id: 12f22017a9722f7a1b4f7ad2289c4767
            type: is_hvac_mode
            hvac_mode: "off"
        enabled: true
    then:
      - target:
          entity_id:
            - climate.lg_3_ac
        data:
          hvac_mode: cool
          temperature: 26
        action: climate.set_temperature
      - metadata: {}
        data:
          title: Accendo LG 3 - New
          message: >-
            '{{now().strftime("%Y-%m-%d------%H:%M:%S"), 'AvanzoEnergia',
            states('sensor.shellyem_gms_channel_1_power')}}'
        action: notify.persistent_notification
      - metadata: {}
        data:
          title: Accendo LG 3 - New - Estate
          message: "'{{now().strftime(\"%Y-%m-%d------%H:%M:%S\")}}"
        action: notify.celldomex
  - delay:
      hours: 0
      minutes: 1
      seconds: 0
      milliseconds: 0
  - alias: Condizione per camera 4
    if:
      - condition: and
        conditions:
          - condition: numeric_state
            entity_id: sensor.shellyem_gms_channel_1_power
            above: 450
          - condition: numeric_state
            entity_id: climate.lg_camera_4
            attribute: current_temperature
            above: 26
          - type: is_temperature
            condition: device
            device_id: c9efcbce06d3f7e80664e679b7c0f0c7
            entity_id: 3811ae9b6b3110b0b70f31031c3788c3
            domain: sensor
            above: 27
          - condition: device
            device_id: c69febbe1f4e18e4ccd2a83fd902ad6a
            domain: climate
            entity_id: f8e3c01213463268602147c070ce7444
            type: is_hvac_mode
            hvac_mode: "off"
        enabled: true
    then:
      - metadata: {}
        data:
          hvac_mode: cool
          temperature: 26
        target:
          entity_id: climate.lg_camera_4
        action: climate.set_temperature
      - metadata: {}
        data:
          title: Accendo LG Camera 4 - New
          message: >-
            '{{now().strftime("%Y-%m-%d------%H:%M:%S"), 'AvanzoEnergia',
            states('sensor.shellyem_gms_channel_1_power')}}'
        action: notify.persistent_notification
      - metadata: {}
        data:
          title: Accendo LG Camera 4 - New - Estate
          message: "'{{now().strftime(\"%Y-%m-%d------%H:%M:%S\")}}"
        action: notify.celldomex
mode: single

change your triggers to:

  - platform: state
    entity_id:
    - sensor.shellyem_gms_channel_1_power
    - <Insert temperature sensor entity_id here>
    state: ~

This trigger will update whenever the states change for each sensor you list there. Keep the rest of your automation the same.

EDIT: Please note that you have to replace the <Insert temperature sensor entity_id here> with the entity_id of your temperature sensor. It’s the entity that you’re checking to see if it’s above 28.

OK thanks I’ll try.