Get rid of warnings in the log
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: template
|
- platform: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ states('sensor.snowywhite_battery')|float >=
|
{{ (states('sensor.snowywhite_battery') | default(0)) | float >=
|
||||||
states('number.snowywhite_charge_limit')|float }}
|
(states('number.snowywhite_charge_limit') | default(100)) | float }}
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
|
|||||||
Reference in New Issue
Block a user