Fixed a bug for chlorPump.yaml where the target would not properly load on start
This commit is contained in:
@@ -6,7 +6,10 @@ esphome:
|
||||
on_boot:
|
||||
priority: 600
|
||||
then:
|
||||
output.turn_on: wifi_status_led
|
||||
- output.turn_on: wifi_status_led
|
||||
- chlorine_pump.set_target:
|
||||
target: !lambda return id(chlorine_target).state;
|
||||
|
||||
|
||||
esp8266:
|
||||
board: nodemcuv2
|
||||
@@ -175,19 +178,15 @@ sensor:
|
||||
- 47608 -> 0
|
||||
- 590566 -> 100
|
||||
unit_of_measurement: "%"
|
||||
- platform: template
|
||||
name: debug_last_raw_value
|
||||
id: debug_last_raw_value
|
||||
accuracy_decimals: 0
|
||||
unit_of_measurement: "points"
|
||||
|
||||
chlorine_pump:
|
||||
pump: pump_switch
|
||||
sensor: chlorine_sensor
|
||||
id: chlorine_pump_component
|
||||
target: 600
|
||||
disable_clock: false
|
||||
proportional_band: 400
|
||||
proportional_band: 200
|
||||
target: 650
|
||||
# get_target: !lambda return id(chlorine_target).state;
|
||||
on_pump_value:
|
||||
- lambda: |-
|
||||
if(pState != id(last_pump_state)){
|
||||
|
Reference in New Issue
Block a user