Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95399

Condition for one temperature being lower than another?

$
0
0

@Faramir wrote:

I am a little stuck on how to create triggers and conditions for an automation I’d like that is depending on temperatures of two sensors.

In pseudo-code I’d like the automation to be triggered when:

IF [inside temperature] > 24 AND 
   [outside temperature] < [inside temperature] AND 
   [clerestory window state] = 'Closed'

What I’ve currently got is as below. However the second condition is where I’d like to compare the inside temperature to the outside temperature so that the second condition is only satisfied when outside is cooler than inside.

Any ideas, help, pointers to more reading / examples would be very much appreciated

- id: '1586585163400'
  alias: Clerestory - Auto - In over 24 and outside less
  trigger:
  - above: '24'
    entity_id: sensor.dining_temperature
    platform: numeric_state
  condition:
  - condition: and
    conditions:
    - condition: state
      entity_id: input_select.clerestory_window
      state: Closed
    - below: '24'
      condition: numeric_state
      entity_id: sensor.outside_temperature
  action:
  - data: {}
    entity_id: switch.openclerestory
    service: switch.turn_on

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95399

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>