How to implement a permanent temperature monitoring?

Hi Experts,

I have an automation, where I aske for different things.

The weather, the tempratute, the wind-speed

I used the temperature as trigger and the other values as conditions connected with OR and AND

My problem is, that the numeric-state-trigger fires only one time by crossing the given value.

I want a permanent monitoring of the temperature.

Is this somehow possible?
I use the weather.home entity

It is not recommended to continuously trigger an automation, but you can use state trigger-

trigger:
  - platform: state
    entity_id: weather.home
    attribute: temperature

will this fire permanently?

Yes, everytime the value of the temperature changes.

Okay, I’ll try …

I just want, that everytime the temperature changes, the other contitions should be checked

This is my automation and it doesn’t work. :frowning:

- id: '1628401196977'
  alias: Markise bei Sonne und Hitze ausfahren
  description: ''
  trigger:
  - platform: state
    entity_id: weather.home
    attribute: temperature
  condition:
  - condition: and
    conditions:
    - condition: numeric_state
      entity_id: weather.home
      attribute: wind_speed
      below: '30'
    - condition: and
      conditions:
      - condition: numeric_state
        entity_id: weather.home
        attribute: temperature
        above: '24'
  - condition: and
    conditions:
    - condition: state
      entity_id: weather.home
      state: partlycloudy
    - condition: or
      conditions:
      - condition: state
        entity_id: weather.home
        state: sunny
      - condition: state
        entity_id: weather.home
        state: cloudy
  action:
  - device_id: 6490b91c16facd09ac935223dbfa93d3
    domain: cover
    entity_id: cover.markise
    type: set_position
    position: 66
  mode: single

try checking the automation trace and see what is stopping it from running.

I think you have your conditions wrong.
Looking at your automation
when temperature changes
and windspeed <30 and temperature >24 and …
and partly cloudy and (either sunny or cloudy)
then reposition cover

The way I read it, it must be
partly cloudy and sunny
or
partly cloudy and cloudy

I think it would be enough to be not rainy…

- id: '1628401196977'
  alias: Markise bei Sonne und Hitze ausfahren
  description: ''
  trigger:
  - platform: state
    entity_id: weather.home
    attribute: temperature
  condition:
  - condition: and
    conditions:
    - condition: numeric_state
      entity_id: weather.home
      attribute: wind_speed
      below: '30'
    - condition: numeric_state
      entity_id: weather.home
      attribute: temperature
      above: '24'
  - condition: and
    conditions:
    - condition: not
      conditions:
      - condition: state
        entity_id: weather.home
        state: rainy
  action:
  - device_id: 6490b91c16facd09ac935223dbfa93d3
    domain: cover
    entity_id: cover.markise
    type: set_position
    position: 66
  mode: - id: '1628401196977'
  alias: Markise bei Sonne und Hitze ausfahren
  description: ''
  trigger:
  - platform: state
    entity_id: weather.home
    attribute: temperature
  condition:
  - condition: and
    conditions:
    - condition: numeric_state
      entity_id: weather.home
      attribute: wind_speed
      below: '30'
    - condition: numeric_state
      entity_id: weather.home
      attribute: temperature
      above: '24'
  - condition: and
    conditions:
    - condition: not
      conditions:
      - condition: state
        entity_id: weather.home
        state: rainy
  action:
  - device_id: 6490b91c16facd09ac935223dbfa93d3
    domain: cover
    entity_id: cover.markise
    type: set_position
    position: 66
  mode: singled 

…but it still won’t work. :frowning:

Did I use the code right?

mode: single(d)?

Or maybe instead of guessing what is keeping it from running yuou should check the automation trace and see why it’s actually not running?

:wink:

Oh, what ist the automation trace?

…found it

Correct me if I’m wrong. It seems you want to always set cover.markise position to 66 when: (1) temperature is above 24, (2) wind_speed is below 30, and (3) not rainy.

Can you show me the state and state attribute of cover.markise? Maybe you can use the position of cover.markise as a trigger if the position changed while all condition are true, the cover.markise position will be returned back to its original state.

Now I did some corrections to my automation.
I created a manual trigger to test ist.
Now I’ll wait for the time an temperature and watch if it works.