Hi All,
This is the scenario: I have a temperature sensor and a smart on/off switch in a guest room. I want the switch to turn on when temperature below a certain temperature.
This the automation in yaml:
alias: heat on off
description: ''
mode: single
trigger:
- type: temperature
platform: device
device_id: 8773296105ec409bf965ba3e790724a5
entity_id: sensor.temp_sensor_guest_room_2
domain: sensor
below: 15
condition: []
action:
- type: turn_on
device_id: f78ad064af4a003572bbf0f7870319c1
entity_id: switch.on_off_plug_in_unit_17
domain: switch
I would like to set the temperature (15 hardcoded at the moment) from a number type helper I created (input_number.guest_room_heater_ontemp)