Skip to content
Permalink
Browse files

0.110.0 / condition: not

  • Loading branch information
geekofweek committed May 20, 2020
1 parent 4657a56 commit 171cab768cfae407379bff2edaff936a40e6b01e
@@ -14,17 +14,16 @@
to: 'triggered'

condition:
- condition: state
entity_id: group.household
state: 'not_home'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
entity_id: group.household
state: 'home'
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'

action:
- service: light.turn_on
@@ -336,20 +335,19 @@
to: 'on'

condition:
- condition: state
entity_id: group.household
state: 'not_home'
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_away'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
entity_id: group.household
state: 'home'
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_away'

action:
- service: alarm_control_panel.alarm_trigger
@@ -424,9 +422,16 @@
seconds: 10

condition:
- condition: state
entity_id: group.household
state: 'not_home'
- condition: not
conditions:
- condition: state
entity_id: group.household
state: 'home'
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'home'
- condition: state
entity_id: vacuum.main_floor_roomba
state: 'docked'
@@ -439,14 +444,6 @@
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_away'
- condition: or
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
- condition: state
entity_id: group.friends_and_family
state: 'unknown'

action:
- service: alarm_control_panel.alarm_trigger
@@ -507,20 +504,19 @@
to: 'open'

condition:
- condition: state
entity_id: group.household
state: 'not_home'
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_away'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
entity_id: group.household
state: 'home'
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_away'

action:
#- service: alarm_control_panel.alarm_trigger
@@ -549,14 +545,11 @@
to: 'home'

condition:
- condition: or
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_home'
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_away'
state: 'disarmed'

action:
- service: alarm_control_panel.alarm_disarm
@@ -583,14 +576,11 @@
to: 'home'

condition:
- condition: or
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_home'
- condition: state
entity_id: alarm_control_panel.alarm
state: 'armed_away'
state: 'disarmed'

action:
- service: alarm_control_panel.alarm_disarm
@@ -613,20 +603,19 @@
seconds: 0

condition:
- condition: state
entity_id: group.household
state: 'not_home'
- condition: state
entity_id: alarm_control_panel.alarm
state: 'disarmed'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
entity_id: group.household
state: 'home'
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'
- condition: state
entity_id: alarm_control_panel.alarm
state: 'disarmed'

action:
- service: alarm_control_panel.alarm_arm_away
@@ -274,38 +274,11 @@
- condition: time
after: '00:00'
before: '07:30'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: input_select.holiday
state: 'Halloween'
- condition: state
entity_id: input_select.holiday
state: "St. Patrick's Day"
- condition: state
entity_id: input_select.holiday
state: 'Easter'
- condition: state
entity_id: input_select.holiday
state: "Valentine's Day"
- condition: state
entity_id: input_select.holiday
state: 'Thanksgiving'
- condition: state
entity_id: input_select.holiday
state: 'Labor Day'
- condition: state
entity_id: input_select.holiday
state: 'Memorial Day'
- condition: state
entity_id: input_select.holiday
state: 'Independence Day'
- condition: state
entity_id: input_select.holiday
state: 'Veterans Day'
- condition: state
entity_id: input_select.holiday
state: 'Christmas'
state: 'None'

action:
- service: light.turn_off
@@ -131,6 +131,11 @@
- condition: state
entity_id: switch.winter_mode
state: 'off'
- condition: not
conditions:
- condition: state
entity_id: weather.REDACTED
state: 'rainy'

action:
- service: switch.turn_on
@@ -163,6 +168,11 @@
- condition: state
entity_id: switch.winter_mode
state: 'off'
- condition: not
conditions:
- condition: state
entity_id: weather.REDACTED
state: 'rainy'

action:
- service: switch.turn_on
@@ -57,17 +57,16 @@
- condition: state
entity_id: input_boolean.disable_climate
state: 'off'
- condition: state
entity_id: group.household
state: 'not_home'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
entity_id: group.household
state: 'home'
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'

action:
- service: notify.mobile_app_USER1s_iphone
@@ -193,14 +192,11 @@
- condition: state
entity_id: switch.summer_mode
state: 'on'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'

action:
- service: homeassistant.turn_on
@@ -285,14 +281,11 @@
- condition: state
entity_id: switch.winter_mode
state: 'on'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'

action:
- service: homeassistant.turn_on
@@ -320,7 +313,7 @@
seconds: 0
- platform: numeric_state
entity_id: sensor.REDACTED_temperature
above: 78
above: 84
for:
hours: 0
minutes: 30
@@ -342,14 +335,11 @@
- condition: state
entity_id: switch.spring_fall_mode
state: 'on'
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'

action:
- service: homeassistant.turn_off
@@ -474,9 +464,11 @@
- condition: state
entity_id: input_boolean.disable_climate
state: 'off'
- condition: state
entity_id: group.household
state: 'not_home'
- condition: not
conditions:
- condition: state
entity_id: group.household
state: 'home'

action:
- service: homeassistant.turn_off
@@ -847,14 +839,11 @@
- wed
- thu
- fri
- condition: or
- condition: not
conditions:
- condition: state
entity_id: group.friends_and_family
state: 'not_home'
- condition: state
entity_id: group.friends_and_family
state: 'unknown'
state: 'home'

action:
- service: ecobee.resume_program
@@ -1035,12 +1024,14 @@
to: 'on'

condition:
- condition: state
entity_id: group.household
state: 'not_home'
- condition: state
entity_id: input_boolean.disable_notifications
state: 'off'
- condition: not
conditions:
- condition: state
entity_id: group.household
state: 'home'

action:
- service: notify.mobile_app_USER1s_iphone

0 comments on commit 171cab7

Please sign in to comment.
You can’t perform that action at this time.