mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 05:20:27 +00:00
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
|
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 |
Loading…
x
Reference in New Issue
Block a user