The learning curve in going from simple automations to complex ones is a bit steep for me. As a mostly C programmer I have difficulty in understanding YAML.
I have been reading the online docs for over a week now. I have also been reading about YAML and I’m starting to think I might be too far behind the times if i can not understand this.
How does the coding of a value from a helper slider (float?) work to a condition in an automation?
The slider is input_number.zolder_temp
and the conditional statement is:
action:
- if:
- condition: and
conditions:
- condition: state
entity_id: schedule.heater_aan_tijden
state: "on"
- type: is_temperature
condition: device
device_id: 254770cc7233e1b89402a546a4161307
entity_id: sensor.lumi_lumi_weather_temperature
domain: sensor
below: 19.4
The below: 19.4
should be connected to the slider. So I tried many things but I do not get it to work.
Later on in the code the same slider value is needed but for the offset value -0.3
For completenesses sake the complete code for my heater:
alias: zolder heater on/off regeling on schedule and niet thuis test
description: ""
trigger:
- platform: time_pattern
minutes: "*"
condition:
- condition: state
entity_id: input_boolean.mensen_in_huis
state: "on"
action:
- if:
- condition: and
conditions:
- condition: state
entity_id: schedule.heater_aan_tijden
state: "on"
- type: is_temperature
condition: device
device_id: 254770cc7233e1b89402a546a4161307
entity_id: sensor.lumi_lumi_weather_temperature
domain: sensor
below: 19.4
then:
- type: turn_on
device_id: 1b361f4441a03b42349c8f760faa9539
entity_id: switch.socket_switch_ir_lamp_switch_2
domain: switch
else:
- if:
- condition: and
conditions:
- condition: state
entity_id: schedule.heater_aan_tijden
state: "on"
- type: is_temperature
condition: device
device_id: 254770cc7233e1b89402a546a4161307
entity_id: sensor.lumi_lumi_weather_temperature
domain: sensor
above: 19.7
then:
- type: turn_off
device_id: 1b361f4441a03b42349c8f760faa9539
entity_id: switch.socket_switch_ir_lamp_switch_2
domain: switch
else:
- if:
- condition: state
entity_id: schedule.heater_aan_tijden
state: "off"
then:
- type: turn_off
device_id: 1b361f4441a03b42349c8f760faa9539
entity_id: switch.socket_switch_ir_lamp_switch_2
domain: switch
mode: single