Update the Juicebox timings to catch more errors.

This commit is contained in:
ccostan 2018-06-29 16:11:03 -04:00
parent 149903f546
commit 017a747d70
2 changed files with 11 additions and 2 deletions

View File

@ -56,13 +56,22 @@ automation:
entity_id: sensor.carlojuice_charging_status entity_id: sensor.carlojuice_charging_status
to: 'disconnect' to: 'disconnect'
for: for:
minutes: 5 minutes: 6
- platform: time
hours: '/3'
minutes: 30
seconds: 30
condition: condition:
- condition: state
entity_id: sensor.carlojuice_charging_status
state: 'disconnect'
for:
minutes: 5
- condition: template - condition: template
value_template: > value_template: >
{%- if states.automation.juicebox_selfheal.attributes.last_triggered -%} {%- 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 -%} {%- else -%}
true true
{%- endif -%} {%- endif -%}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 124 KiB