Refactor as packages

This commit is contained in:
2020-03-05 13:31:19 +02:00
parent 90c6a3d061
commit 32fc3ef1db
39 changed files with 721 additions and 689 deletions
+36
View File
@@ -0,0 +1,36 @@
input_boolean:
guest_mode:
name: Guest Mode
initial: off
icon: mdi:human-greeting
automation:
- id: enable_guest_mode
alias: Guest Mode - Enable
trigger:
platform: state
entity_id: input_boolean.guest_mode
from: "off"
to: "on"
action:
- service: automation.turn_off
entity_id:
- automation.leaving_home
- automation.coming_home
- service: input_boolean.turn_off
entity_id: input_boolean.speech_notifications
- id: disable_guest_mode
alias: Guest Mode - Disable
trigger:
platform: state
entity_id: input_boolean.guest_mode
from: "on"
to: "off"
action:
- service: automation.turn_on
entity_id:
- automation.leaving_home
- automation.coming_home
- service: input_boolean.turn_on
entity_id: input_boolean.speech_notifications