home-assistant-configuration/automation/transit.yaml

50 lines
1.1 KiB
YAML
Raw Normal View History

#
#
# Transit
#
############
- alias: Jeff eta home
trigger:
- platform: state
entity_id: sensor.jeff_destination
to: Home
condition:
- condition: state
entity_id: input_boolean.text_notify_kat
state: 'on'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.jeff_heading_home
2018-03-09 17:58:46 +00:00
##### Jeff Traffic Alerts
- alias: Enable Jeff Bad Traffic Home
trigger:
2018-03-09 18:07:48 +00:00
- platform: mumeric_state
2018-03-09 17:58:46 +00:00
entity_id: sensor.jeff_ett_home
above: 59
condition:
- condition: state
entity_id: sensor.jeff_location
state: 'Summit'
- condition: state
entity_id: input_boolean.jeff_traffic_alerts
state: 'on'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.jeff_traffic_alert_home
- alias: Disabling Jeff Bad Traffic Home
trigger:
2018-03-09 18:07:48 +00:00
- platform: mumeric_state
2018-03-09 17:58:46 +00:00
entity_id: sensor.jeff_ett_home
below: 40
2018-03-09 18:05:18 +00:00
condition:
2018-03-09 17:58:46 +00:00
- condition: state
entity_id: input_boolean.jeff_traffic_alert_home
state: 'on'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.jeff_traffic_alert_home