Skip to content

Reboot on connectivity loss

This example reboots the device automatically once it has lost internet connectivity for five minutes.

The delayed_off: 5min filter makes sure the device only reboots after the connection has been down continuously for five minutes. The on_release trigger presses the reboot button via the button.press action.

ubihome:
name: UbiHome Example
online:
update_interval: 10s
power_utils:
binary_sensor:
- platform: online
name: 'Internet'
id: internet
filters:
# Only report "offline" once the outage has lasted 5 minutes.
- delayed_off: 5min
on_release:
then:
- button.press: reboot_on_outage
button:
- platform: power_utils
name: 'Reboot on outage'
id: reboot_on_outage
action: reboot