I just can’t wrap my N00b head around this.
I have one Automation for a temperature sensor (in a Smoke sensor), and I want the automation to trigger when temperature goes below 15ºC and trigger when temperature goes over 50 ºC.
Is it possible with a value template or some other trigger condition?..
value_template: {{ sensor.fib_smoke_sensor3_temperature > 50 or
sensor.fib_smoke_sensor3_temperature < 15 }}
- alias: Smoke Sensor Temp. - Loft
initial_state: ‘on’
trigger:
platform: numeric_state
entity_id: sensor.fib_smoke_sensor3_temperature
below: 15
action:
- service: notify.ios_toms_iphone_6
data:
title: ‘Hassio-Røyk sensor-Loft’
message: 'Temperatur varsel {{ states.sensor.fib_smoke_sensor3_temperature.state }}