]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Fixed previous commit
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 21 Feb 2019 21:26:47 +0000 (22:26 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 21 Feb 2019 21:26:47 +0000 (22:26 +0100)
automation/home_assistant.yaml
input_boolean/home_assistant.yaml
ui-lovelace.yaml

index 753c54c7f8686f564a4917e461a3db748af76990..967bc5a640626cfb3bb4a9c8a513089f84877d75 100644 (file)
     - service: recorder.purge
       data:
         keep_days: 0
+
+######################################################################
+# Home Assistant: Restart
+# - homeassistant.restart
+######################################################################
+
+- alias: "Home Assistant: Riavvio Servizio"
+  initial_state: 'on'
+
+  trigger: 
+    - platform: state
+      entity_id: input_boolean.homeassistant_restart
+
+  action:
+    - service: homeassistant.restart
index ef3044359b98553b81441d10bf5dfc9a4e6f1344..d364999488ac7740eb873b7e6608ebd5e23bf26d 100644 (file)
@@ -28,3 +28,12 @@ text_notifications:
   name: Notifiche Testuali
   icon: mdi:message-bulleted
   initial: on
+
+######################################################################
+# Inputs: Restart Home Assistant
+######################################################################
+
+homeassistant_restart:
+  name: Riavvia Home Assistant
+  icon: mdi:home-assistant
+  initial: on
index 606dd59d905a1ac919e90adfa3f6c855f05e6514..bd4ea585d7624b62e6bb65f6187649e9b68db4fa 100644 (file)
@@ -308,3 +308,6 @@ views:
         title: Configurazione Notifiche
         entities:
         - group.ha_settings
+      - type: entity-button
+        entity: input_boolean.homeassistant.restart
+