]> git.giorgioravera.it Git - homeassistant.git/commitdiff
moved restart button to script
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 21 Feb 2019 21:41:39 +0000 (22:41 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 21 Feb 2019 21:41:39 +0000 (22:41 +0100)
automation/home_assistant.yaml
input_boolean/home_assistant.yaml
script/home_assistant.yaml [new file with mode: 0644]
ui-lovelace.yaml

index 967bc5a640626cfb3bb4a9c8a513089f84877d75..753c54c7f8686f564a4917e461a3db748af76990 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 d364999488ac7740eb873b7e6608ebd5e23bf26d..ef3044359b98553b81441d10bf5dfc9a4e6f1344 100644 (file)
@@ -28,12 +28,3 @@ 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
diff --git a/script/home_assistant.yaml b/script/home_assistant.yaml
new file mode 100644 (file)
index 0000000..a58af42
--- /dev/null
@@ -0,0 +1,9 @@
+######################################################################
+# Home Assistant: Restart
+# - homeassistant.restart
+######################################################################
+
+- alias: "Home Assistant: Riavvio Servizio"
+
+  sequence:
+    - service: homeassistant.restart
index bd4ea585d7624b62e6bb65f6187649e9b68db4fa..4ee7197bd8af600ce569aaa549d700a5055445da 100644 (file)
@@ -309,5 +309,5 @@ views:
         entities:
         - group.ha_settings
       - type: entity-button
-        entity: input_boolean.homeassistant.restart
+        entity: script.homeassistant.restart