Update the Juicebox timings to catch more errors.
This commit is contained in:
parent
149903f546
commit
017a747d70
|
@ -56,13 +56,22 @@ automation:
|
|||
entity_id: sensor.carlojuice_charging_status
|
||||
to: 'disconnect'
|
||||
for:
|
||||
minutes: 5
|
||||
minutes: 6
|
||||
- platform: time
|
||||
hours: '/3'
|
||||
minutes: 30
|
||||
seconds: 30
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: sensor.carlojuice_charging_status
|
||||
state: 'disconnect'
|
||||
for:
|
||||
minutes: 5
|
||||
- condition: template
|
||||
value_template: >
|
||||
{%- if states.automation.juicebox_selfheal.attributes.last_triggered -%}
|
||||
{{ (as_timestamp(now()) - as_timestamp(states.automation.juicebox_selfheal.attributes.last_triggered)) > 40000 }}
|
||||
{{ (as_timestamp(now()) - as_timestamp(states.automation.juicebox_selfheal.attributes.last_triggered)) > 25000 }}
|
||||
{%- else -%}
|
||||
true
|
||||
{%- endif -%}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 124 KiB |
Loading…
Reference in New Issue