mirror of
				https://github.com/thejeffreystone/home-assistant-configuration.git
				synced 2025-11-04 04:55:01 +00:00 
			
		
		
		
	Big Update
Added new scripts for status Added new automations for pressance and status Removed problematic value template from cover Added moon status Added customizations for travel times Rearranged groups Lots of other small changes
This commit is contained in:
		@@ -3,16 +3,10 @@ trigger:
 | 
			
		||||
  - platform: state
 | 
			
		||||
    entity_id: group.family
 | 
			
		||||
    state: "not home"
 | 
			
		||||
  - platform: state
 | 
			
		||||
    entity_id: cover.garage_door
 | 
			
		||||
    state: "open"
 | 
			
		||||
condition:
 | 
			
		||||
  - condition: state
 | 
			
		||||
    entity_id: cover.garage_door
 | 
			
		||||
    state: "open"
 | 
			
		||||
  - condition: state
 | 
			
		||||
    entity_id: group.family
 | 
			
		||||
    state: "not home"
 | 
			
		||||
action:
 | 
			
		||||
  - service: notify.notify
 | 
			
		||||
    data:
 | 
			
		||||
 
 | 
			
		||||
@@ -1,14 +0,0 @@
 | 
			
		||||
alias: 'Jeff Is Driving'
 | 
			
		||||
trigger:
 | 
			
		||||
  platform: numeric_state
 | 
			
		||||
  entity_id: sensor.jeff_velocity
 | 
			
		||||
  above: 8
 | 
			
		||||
condition:
 | 
			
		||||
  condition: state
 | 
			
		||||
  entity_id: device_tracker.owntracks_jeffreysphone
 | 
			
		||||
  state: "not_home"
 | 
			
		||||
action:
 | 
			
		||||
  - service: input_select.select_option
 | 
			
		||||
    data:
 | 
			
		||||
      entity_id: input_select.jeff_status
 | 
			
		||||
      option: driving
 | 
			
		||||
@@ -3,12 +3,9 @@ trigger:
 | 
			
		||||
  platform: zone
 | 
			
		||||
  event: enter
 | 
			
		||||
  zone: zone.home
 | 
			
		||||
  entity_id: device_tracker.jeffreysiphone
 | 
			
		||||
  entity_id: device_tracker.jeffreystonesiphone
 | 
			
		||||
action:
 | 
			
		||||
  - service: notify.notify
 | 
			
		||||
    data:
 | 
			
		||||
      message: "Jeff arrived home"
 | 
			
		||||
  - service: input_select.select_option
 | 
			
		||||
    data:
 | 
			
		||||
      entity_id: input_select.jeff_status
 | 
			
		||||
      option: stationary
 | 
			
		||||
  - service: script.jeff_is_stationary
 | 
			
		||||
 
 | 
			
		||||
@@ -3,12 +3,9 @@ trigger:
 | 
			
		||||
  platform: zone
 | 
			
		||||
  event: leave
 | 
			
		||||
  zone: zone.home
 | 
			
		||||
  entity_id: device_tracker.jeffreysiphone
 | 
			
		||||
  entity_id: device_tracker.jeffreystonesiphone
 | 
			
		||||
action:
 | 
			
		||||
  - service: notify.notify
 | 
			
		||||
    data:
 | 
			
		||||
      message: "Jeff left home"
 | 
			
		||||
  - service: input_select.select_option
 | 
			
		||||
    data:
 | 
			
		||||
      entity_id: input_select.jeff_status
 | 
			
		||||
      option: moving
 | 
			
		||||
  - service: script.jeff_is_moving
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
alias: 'Jeff Is Stationary'
 | 
			
		||||
trigger:
 | 
			
		||||
  platform: numeric_state
 | 
			
		||||
  entity_id: sensor.jeff_velocity
 | 
			
		||||
  below: 2
 | 
			
		||||
action:
 | 
			
		||||
  - service: input_select.select_option
 | 
			
		||||
    data:
 | 
			
		||||
      entity_id: input_select.jeff_status
 | 
			
		||||
      option: stationary
 | 
			
		||||
							
								
								
									
										11
									
								
								automations/jeff_summit_enter.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								automations/jeff_summit_enter.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
alias: "Jeff Arrives At Summit"
 | 
			
		||||
trigger:
 | 
			
		||||
  platform: zone
 | 
			
		||||
  event: enter
 | 
			
		||||
  zone: zone.summit
 | 
			
		||||
  entity_id: device_tracker.jeffreystonesiphone
 | 
			
		||||
action:
 | 
			
		||||
  - service: notify.notify
 | 
			
		||||
    data:
 | 
			
		||||
      message: "Jeff arrived at Summit"
 | 
			
		||||
  - service: script.jeff_is_stationary
 | 
			
		||||
							
								
								
									
										11
									
								
								automations/jeff_summit_leave.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								automations/jeff_summit_leave.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
alias: "Jeff Leaves Summit"
 | 
			
		||||
trigger:
 | 
			
		||||
  platform: zone
 | 
			
		||||
  event: leave
 | 
			
		||||
  zone: zone.summit
 | 
			
		||||
  entity_id: device_tracker.jeffreystonesiphone
 | 
			
		||||
action:
 | 
			
		||||
  - service: notify.notify
 | 
			
		||||
    data:
 | 
			
		||||
      message: "Jeff left summit"
 | 
			
		||||
  - service: script.jeff_is_moving
 | 
			
		||||
@@ -1,15 +0,0 @@
 | 
			
		||||
alias: 'Jeff Is Walking'
 | 
			
		||||
trigger:
 | 
			
		||||
  platform: numeric_state
 | 
			
		||||
  entity_id: sensor.jeff_velocity
 | 
			
		||||
  above: 2
 | 
			
		||||
  below: 8
 | 
			
		||||
condition:
 | 
			
		||||
  condition: state
 | 
			
		||||
  entity_id: device_tracker.owntracks_jeffreysphone
 | 
			
		||||
  state: "not_home"
 | 
			
		||||
action:
 | 
			
		||||
  - service: input_select.select_option
 | 
			
		||||
    data:
 | 
			
		||||
      entity_id: input_select.jeff_status
 | 
			
		||||
      option: walking
 | 
			
		||||
@@ -8,3 +8,4 @@ action:
 | 
			
		||||
  - service: notify.notify
 | 
			
		||||
    data:
 | 
			
		||||
      message: "Kat arrived home"
 | 
			
		||||
  - service: script.kat_is_stationary
 | 
			
		||||
 
 | 
			
		||||
@@ -8,3 +8,4 @@ action:
 | 
			
		||||
  - service: notify.notify
 | 
			
		||||
    data:
 | 
			
		||||
      message: "Kat left home"
 | 
			
		||||
  - service: script.kat_unknown
 | 
			
		||||
 
 | 
			
		||||
@@ -3,8 +3,4 @@ trigger:
 | 
			
		||||
  platform: sun
 | 
			
		||||
  event: sunrise
 | 
			
		||||
action:
 | 
			
		||||
  - service: notify.notify
 | 
			
		||||
    data:
 | 
			
		||||
      title: 'HA: Turning Off Outside Ligts'
 | 
			
		||||
      message: "Sun is up."
 | 
			
		||||
  - service: script.outside_all_off
 | 
			
		||||
 
 | 
			
		||||
@@ -156,7 +156,6 @@ cover:
 | 
			
		||||
    payload_close: 'closed'
 | 
			
		||||
    retain: true
 | 
			
		||||
    optimistic: true
 | 
			
		||||
    value_template: '{{ value.x }}'
 | 
			
		||||
 | 
			
		||||
# Discover some devices automatically
 | 
			
		||||
discovery:
 | 
			
		||||
 
 | 
			
		||||
@@ -186,3 +186,11 @@ sensor.garage_door:
 | 
			
		||||
 | 
			
		||||
cover.garage_door:
 | 
			
		||||
  icon: mdi:garage
 | 
			
		||||
 | 
			
		||||
sensor.home_to_summit:
 | 
			
		||||
  friendly_name: "Time to Summit"
 | 
			
		||||
  icon: mdi:car
 | 
			
		||||
 | 
			
		||||
sensor.home_to_zoo:
 | 
			
		||||
  friendly_name: "Time to Zoo Atlanta"
 | 
			
		||||
  icon: mdi:car
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								groups.yaml
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								groups.yaml
									
									
									
									
									
								
							@@ -6,6 +6,7 @@ default_view:
 | 
			
		||||
    entities:
 | 
			
		||||
      - group.family
 | 
			
		||||
      - group.temperature
 | 
			
		||||
      - group.sun_and_moon
 | 
			
		||||
      - group.travel_times
 | 
			
		||||
      - group.security
 | 
			
		||||
 | 
			
		||||
@@ -66,9 +67,7 @@ weather:
 | 
			
		||||
### Grops ###
 | 
			
		||||
Family:
 | 
			
		||||
  - device_tracker.jeffreystonesiphone
 | 
			
		||||
  - sensor.jeff_ett_home
 | 
			
		||||
  - device_tracker.katherinesiphone
 | 
			
		||||
  - sensor.kat_ett_home
 | 
			
		||||
 | 
			
		||||
Jeffrey:
 | 
			
		||||
  - device_tracker.jeffreystonesiphone
 | 
			
		||||
@@ -80,10 +79,14 @@ Katherine:
 | 
			
		||||
  - device_tracker.katherinesiphone
 | 
			
		||||
  - sensor.kat_iphone_batt
 | 
			
		||||
  - sensor.kat_ett_home
 | 
			
		||||
  - input_select.kat_status
 | 
			
		||||
 | 
			
		||||
Travel Times:
 | 
			
		||||
  - sensor.home_to_summit
 | 
			
		||||
  - sensor.home_to_zoo
 | 
			
		||||
  - sensor.jeff_ett_home
 | 
			
		||||
  - sensor.kat_ett_home
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Living Lights:
 | 
			
		||||
  - switch.fireplace_lights
 | 
			
		||||
@@ -106,6 +109,7 @@ Thermostat:
 | 
			
		||||
 | 
			
		||||
Weather:
 | 
			
		||||
  - sun.sun
 | 
			
		||||
  - sensor.moon
 | 
			
		||||
  - sensor.dark_sky_summary
 | 
			
		||||
  - sensor.dark_sky_apparent_temperature
 | 
			
		||||
  - sensor.dark_sky_humidity
 | 
			
		||||
@@ -115,8 +119,9 @@ Weather:
 | 
			
		||||
  - sensor.dark_sky_visibility
 | 
			
		||||
  - sensor.dark_sky_pressure
 | 
			
		||||
 | 
			
		||||
Sun:
 | 
			
		||||
Sun and Moon:
 | 
			
		||||
  - sun.sun
 | 
			
		||||
  - sensor.moon
 | 
			
		||||
 | 
			
		||||
Temperature:
 | 
			
		||||
  - sensor.dark_sky_temperature
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,14 @@
 | 
			
		||||
jeff_status:
 | 
			
		||||
  name: Jeff Status
 | 
			
		||||
  options:
 | 
			
		||||
   - driving
 | 
			
		||||
   - stationary
 | 
			
		||||
   - sleeping
 | 
			
		||||
   - walking
 | 
			
		||||
   - moving
 | 
			
		||||
  initial: stationary
 | 
			
		||||
   - unknown
 | 
			
		||||
  initial: unknown
 | 
			
		||||
kat_status:
 | 
			
		||||
  name: Kat Status
 | 
			
		||||
  options:
 | 
			
		||||
   - stationary
 | 
			
		||||
   - moving
 | 
			
		||||
   - unknown
 | 
			
		||||
  initial: unknown
 | 
			
		||||
 
 | 
			
		||||
@@ -6,6 +6,3 @@ sequence:
 | 
			
		||||
- service: switch.turn_off
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: switch.tower_lamp
 | 
			
		||||
- service: notify.notify
 | 
			
		||||
  data:
 | 
			
		||||
    title: "HA: Inside lights are off"
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,3 @@ sequence:
 | 
			
		||||
- service: scene.turn_on
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: scene.livingroom_normal
 | 
			
		||||
- service: notify.notify
 | 
			
		||||
  data:
 | 
			
		||||
    title: "HA: Inside lights are on"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								scripts/jeff_is_driving.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/jeff_is_driving.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
sequence:
 | 
			
		||||
- event: LOGBOOK_ENTRY
 | 
			
		||||
  event_data:
 | 
			
		||||
    name: EVENT
 | 
			
		||||
    message: "Jeff is Driving"
 | 
			
		||||
- service: input_select.select_option
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: input_select.jeff_status
 | 
			
		||||
    option: driving
 | 
			
		||||
							
								
								
									
										9
									
								
								scripts/jeff_is_stationary.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/jeff_is_stationary.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
sequence:
 | 
			
		||||
- event: LOGBOOK_ENTRY
 | 
			
		||||
  event_data:
 | 
			
		||||
    name: EVENT
 | 
			
		||||
    message: "Jeff is Driving"
 | 
			
		||||
- service: input_select.select_option
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: input_select.jeff_status
 | 
			
		||||
    option: stationary
 | 
			
		||||
							
								
								
									
										9
									
								
								scripts/jeff_unknown.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/jeff_unknown.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
sequence:
 | 
			
		||||
- event: LOGBOOK_ENTRY
 | 
			
		||||
  event_data:
 | 
			
		||||
    name: EVENT
 | 
			
		||||
    message: "Jeff Status Unknown"
 | 
			
		||||
- service: input_select.select_option
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: input_select.jeff_status
 | 
			
		||||
    option: unknown
 | 
			
		||||
							
								
								
									
										9
									
								
								scripts/kat_is_driving.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/kat_is_driving.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
sequence:
 | 
			
		||||
- event: LOGBOOK_ENTRY
 | 
			
		||||
  event_data:
 | 
			
		||||
    name: EVENT
 | 
			
		||||
    message: "Kat is Driving"
 | 
			
		||||
- service: input_select.select_option
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: input_select.kat_status
 | 
			
		||||
    option: driving
 | 
			
		||||
							
								
								
									
										9
									
								
								scripts/kat_is_stationary.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/kat_is_stationary.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
sequence:
 | 
			
		||||
- event: LOGBOOK_ENTRY
 | 
			
		||||
  event_data:
 | 
			
		||||
    name: EVENT
 | 
			
		||||
    message: "Kat is Driving"
 | 
			
		||||
- service: input_select.select_option
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: input_select.kat_status
 | 
			
		||||
    option: stationary
 | 
			
		||||
							
								
								
									
										9
									
								
								scripts/kat_unknown.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/kat_unknown.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
sequence:
 | 
			
		||||
- event: LOGBOOK_ENTRY
 | 
			
		||||
  event_data:
 | 
			
		||||
    name: EVENT
 | 
			
		||||
    message: "Kat Status Unknown"
 | 
			
		||||
- service: input_select.select_option
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: input_select.kat_status
 | 
			
		||||
    option: unknown
 | 
			
		||||
@@ -15,6 +15,3 @@ sequence:
 | 
			
		||||
- service: switch.turn_off
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: switch.front_porch_right
 | 
			
		||||
- service: notify.notify
 | 
			
		||||
  data:
 | 
			
		||||
    title: "HA: Outside lights are off"
 | 
			
		||||
 
 | 
			
		||||
@@ -15,6 +15,3 @@ sequence:
 | 
			
		||||
- service: switch.turn_on
 | 
			
		||||
  data:
 | 
			
		||||
    entity_id: switch.front_porch_right
 | 
			
		||||
- service: notify.notify
 | 
			
		||||
  data:
 | 
			
		||||
    title: "HA: Outside lights are on"
 | 
			
		||||
 
 | 
			
		||||
@@ -33,3 +33,4 @@
 | 
			
		||||
    minutes: 5
 | 
			
		||||
    seconds: 0
 | 
			
		||||
    milliseconds: 0
 | 
			
		||||
- platform: moon
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user