mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
corrections in reconnecting automation (#20884)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
29d3149dd1
commit
a8746d1ee4
@ -485,16 +485,16 @@ template:
|
||||
- binary_sensor:
|
||||
- name: "Homematic is sending updates"
|
||||
state: >-
|
||||
{{ now() - as_timestamp(state_attr('sensor.office_voltage', 'last_changed'), 601) < 600 }}
|
||||
{{ (now() - states.sensor.office_voltage.last_changed).seconds < 600 }}
|
||||
|
||||
automation:
|
||||
- alias: "Homematic Reconnect"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.homematic_up
|
||||
entity_id: binary_sensor.homematic_is_sending_updates
|
||||
to: "off"
|
||||
action:
|
||||
# Reconnect, if sensor has not been updated for over 3 hours
|
||||
# Reconnect, if sensor has not been updated for over 10 minutes
|
||||
service: homematic.reconnect
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user