So, I tried to use the new component number in order to be able to change the parameters from the Home Assistant interface.
And while esp can work without a network connection.
I made the config following the example. And in the device parameters, the values from ESP appeared. Hooray!
But it is impossible to change them. If you try to change through the interface, they remain unchanged. There are also no messages about new parameters in the ESP logs. What am I doing wrong?
number:
- platform: template
name: "Minimal humidity"
id: min_hum
update_interval: never
initial_value: 92
min_value: 0
max_value: 100
step: 1
- platform: template
name: "Maximal humidity"
id: max_hum
update_interval: never
initial_value: 95
min_value: 0
max_value: 100
step: 1
sensor:
- platform: dht
pin: 00
model: AM2302
temperature:
name: "Temperature"
humidity:
name: "Humidity"
id: hum
on_value:
then:
- if:
condition:
lambda: |-
return (id(hum).state > id(max_hum).state);
then:
- switch.turn_on: dehumidifier1
- if:
condition:
lambda: |-
return (id(hum).state < id(min_hum).state);
then:
- switch.turn_off: dehumidifier1
update_interval: 40s