How can I change the value in a condition?
here is my code
‘’’’
number:
- platform: template
name: “Inschakelwaarde”
id: inschakel
min_value: 0
max_value: 3600
step: 100
restore_value: false
optimistic: true
script:
- id: boilersturing
then:- if:
condition:
and:-
sensor.in_range:
id: terugpower
below: lambda: |-
x = id(inschakel).state;
return 25.0; -
switch.is_on: boilerswitch
then: -
switch.turn_off: boilerswitch
‘’’
-
- if:
I want to change the value ‘below’ with the value of a sensor, but I get all the time " expected float "