mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-06-14 03:48:53 +00:00
#370 More fine tuning to make sure it doesn't continuously restart the Juicebox.
This commit is contained in:
parent
ab65d38ac0
commit
53eba23cd7
@ -6,7 +6,6 @@
|
||||
homeassistant:
|
||||
customize_glob:
|
||||
"*.carlojuice*":
|
||||
|
||||
homebridge_hidden: True
|
||||
hidden: False
|
||||
#-------------------------------------------
|
||||
@ -55,6 +54,17 @@ automation:
|
||||
- platform: state
|
||||
entity_id: sensor.carlojuice_charging_status
|
||||
to: 'disconnect'
|
||||
for:
|
||||
minutes: 5
|
||||
|
||||
condition:
|
||||
- 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 }}
|
||||
{%- else -%}
|
||||
true
|
||||
{%- endif -%}
|
||||
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
|
Loading…
x
Reference in New Issue
Block a user