input_boolean:
hass_restart:
name: Hass restart
initial: off
icon: mdi:autorenew
automation:
- alias: hass_restart
trigger:
- platform: state
entity_id: input_boolean.hass_restart
from: 'off'
to: 'on'
action:
- service: homeassistant.restart
- service: input_boolean.toggle
entity_id: input_boolean.hass_restart
|