Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1.  
  2. - id: arm_night
  3. alias: arm_night
  4. condition:
  5. condition: and
  6. conditions:
  7. - condition: or
  8. conditions:
  9. - condition: state
  10. entity_id: input_boolean.easleep
  11. state: 'on'
  12. - condition: state
  13. entity_id: group.erlend
  14. state: not_home
  15. - condition: or
  16. conditions:
  17. - condition: state
  18. entity_id: input_boolean.casleep
  19. state: 'on'
  20. - condition: state
  21. entity_id: group.caroline
  22. state: not_home
  23. - condition: or
  24. conditions:
  25. - condition: state
  26. entity_id: input_boolean.easleep
  27. state: 'on'
  28. - condition: state
  29. entity_id: input_boolean.casleep
  30. state: 'on'
  31. - condition: or
  32. conditions:
  33. - condition: state
  34. entity_id: group.caroline
  35. state: home
  36. - condition: state
  37. entity_id: group.erlend
  38. state: home
  39. - condition: state
  40. entity_id: input_boolean.guestmode
  41. state: 'off'
  42. trigger:
  43. - platform: state
  44. entity_id: group.erlend
  45. to: not_home
  46. - platform: state
  47. entity_id: group.caroline
  48. to: not_home
  49. - platform: state
  50. entity_id: input_boolean.easleep
  51. to: 'on'
  52. - platform: state
  53. entity_id: input_boolean.casleep
  54. to: 'on'
  55. - platform: state
  56. entity_id: group.erlend
  57. to: not_home
  58. for:
  59. minutes: 5
  60. - platform: state
  61. entity_id: group.caroline
  62. to: not_home
  63. for:
  64. minutes: 5
  65. - platform: state
  66. entity_id: input_boolean.easleep
  67. to: 'on'
  68. for:
  69. minutes: 5
  70. - platform: state
  71. entity_id: input_boolean.casleep
  72. to: 'on'
  73. for:
  74. minutes: 5
  75. action:
  76. - service: input_select.select_option
  77. data:
  78. entity_id: input_select.alarm
  79. option: Arm Home
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement