updating configuration
This commit is contained in:
@@ -30,11 +30,11 @@ globals:
|
||||
type: bool
|
||||
restore_value: yes
|
||||
initial_value: 'true'
|
||||
- id: cold_value
|
||||
- id: counter_cold_value
|
||||
type: float
|
||||
restore_value: yes
|
||||
initial_value: '210.29'
|
||||
- id: hot_value
|
||||
- id: counter_hot_value
|
||||
type: float
|
||||
restore_value: yes
|
||||
initial_value: '109.74'
|
||||
@@ -49,7 +49,7 @@ binary_sensor:
|
||||
- delayed_off: 100ms
|
||||
on_press:
|
||||
then:
|
||||
- lambda: 'id(cold_value) += 0.01;'
|
||||
- lambda: 'id(counter_cold_value) += 0.01;'
|
||||
|
||||
- platform: gpio
|
||||
name: pulse_hot
|
||||
@@ -60,22 +60,22 @@ binary_sensor:
|
||||
- delayed_off: 100ms
|
||||
on_press:
|
||||
then:
|
||||
- lambda: 'id(hot_value) += 0.01;'
|
||||
- lambda: 'id(counter_hot_value) += 0.01;'
|
||||
|
||||
sensor:
|
||||
- platform: uptime
|
||||
name: "Watercontrol Uptime"
|
||||
|
||||
- platform: template
|
||||
name: "counter hot"
|
||||
name: "counter_hot"
|
||||
lambda: |-
|
||||
return id(hot_value);
|
||||
return id(counter_hot_value);
|
||||
update_interval: 60s
|
||||
|
||||
- platform: template
|
||||
name: "counter cold"
|
||||
name: "counter_cold"
|
||||
lambda: |-
|
||||
return id(cold_value);
|
||||
return id(counter_cold_value);
|
||||
update_interval: 60s
|
||||
|
||||
- platform: ultrasonic
|
||||
|
||||
Reference in New Issue
Block a user