Closes #347 - House know can account for business trips and late poker nights.
This commit is contained in:
parent
b3caf2ae58
commit
152931c052
|
@ -21,12 +21,22 @@
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.guest_mode
|
entity_id: input_boolean.guest_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity_id: device_tracker.carlo
|
||||||
|
state: 'not_home'
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity_id: device_tracker.stacey
|
||||||
|
state: 'not_home'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
|
|
|
@ -44,9 +44,17 @@
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: device_tracker.carlo
|
||||||
|
state: 'not_home'
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: device_tracker.stacey
|
||||||
|
state: 'not_home'
|
||||||
- condition: or
|
- condition: or
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
entity_id: switch.master_bathroom_accents
|
entity_id: switch.master_bathroom_accents
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ not is_state('binary_sensor.sleepnumber_carlo_stacey_is_in_bed', 'off') }}
|
{{ not is_state('binary_sensor.sleepnumber_carlo_stacey_is_in_bed', 'off') or is_state('device_tracker.stacey', 'not_home')}}
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ not is_state('binary_sensor.sleepnumber_carlo_carlo_is_in_bed', 'off') }}
|
{{ not is_state('binary_sensor.sleepnumber_carlo_carlo_is_in_bed', 'off') or is_state('device_tracker.carlo', 'not_home') }}
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
entity_id: switch.master_bathroom_accents
|
entity_id: switch.master_bathroom_accents
|
||||||
|
|
|
@ -43,12 +43,22 @@ automation:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: 'below_horizon'
|
state: 'below_horizon'
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity_id: device_tracker.carlo
|
||||||
|
state: 'not_home'
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity_id: device_tracker.stacey
|
||||||
|
state: 'not_home'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
|
|
|
@ -258,7 +258,7 @@ automation:
|
||||||
pick: >-
|
pick: >-
|
||||||
{% set pick = [
|
{% set pick = [
|
||||||
"minecraft",
|
"minecraft",
|
||||||
"solar", "solar",
|
"solar", "solar", "solar",
|
||||||
"robot", "robot", "robot", "robot", "robot", "robot", "robot", "robot", "robot","robot","robot","robot",
|
"robot", "robot", "robot", "robot", "robot", "robot", "robot", "robot", "robot","robot","robot","robot",
|
||||||
"door", "door", "door",
|
"door", "door", "door",
|
||||||
"weather", "weather", "weather", "weather", "weather",
|
"weather", "weather", "weather", "weather", "weather",
|
||||||
|
|
|
@ -19,7 +19,8 @@ tweet_engine_setup:
|
||||||
|
|
||||||
"solar": [
|
"solar": [
|
||||||
"I am keeping track of the current #Tesla stock price. It is ${{ states('sensor.tesla')|round }}. #Solar",
|
"I am keeping track of the current #Tesla stock price. It is ${{ states('sensor.tesla')|round }}. #Solar",
|
||||||
"The #ChevyBolt was charged for about {{ states.sensor.bolt_charging_time.attributes.value|replace('m', '') }} minutes in the last 7 days."
|
"The #ChevyBolt was charged for about {{ states.sensor.bolt_charging_time.attributes.value|replace('m', '') }} minutes in the last 7 days.",
|
||||||
|
"The Official Diecast P85 Model S Red (https://amzn.to/2Hkkl0S) link - Out of stock like the originals. :)"
|
||||||
],
|
],
|
||||||
|
|
||||||
"robot": [
|
"robot": [
|
||||||
|
|
Loading…
Reference in New Issue