| 
									
										
										
										
											2018-01-01 19:00:45 -05:00
										 |  |  | ######################################################################
 | 
					
						
							|  |  |  | ##  Some home facts when we get back home from being away.
 | 
					
						
							|  |  |  | ######################################################################
 | 
					
						
							|  |  |  | - alias: 'Home Stats'
 | 
					
						
							| 
									
										
										
										
											2020-07-20 19:33:03 +01:00
										 |  |  |   id: f98e1ef4-051b-4214-908d-d8b35f076a3e
 | 
					
						
							| 
									
										
										
										
											2018-01-01 19:00:45 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |   trigger:
 | 
					
						
							|  |  |  |     - platform: state
 | 
					
						
							|  |  |  |       entity_id:
 | 
					
						
							|  |  |  |         - group.family
 | 
					
						
							|  |  |  |       from: 'not_home'
 | 
					
						
							|  |  |  |       to: 'home'
 | 
					
						
							|  |  |  |       for: '00:03:00'
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     - platform: state
 | 
					
						
							|  |  |  |       entity_id: input_boolean.home_stats
 | 
					
						
							|  |  |  |       to: 'on'
 | 
					
						
							|  |  |  |       from: 'off'
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   action:
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:53:13 +00:00
										 |  |  |     - wait_template: >-
 | 
					
						
							|  |  |  |        {{ is_state('group.garage_doors', 'closed') }}
 | 
					
						
							|  |  |  |       timeout: 00:05:30
 | 
					
						
							| 
									
										
										
										
											2018-01-01 19:00:45 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |     - service: script.speech_engine
 | 
					
						
							|  |  |  |       data:
 | 
					
						
							|  |  |  |         call_inside_weather: 1
 | 
					
						
							|  |  |  |         call_responsibilities: 1
 | 
					
						
							|  |  |  |         call_outside_weather: 1
 | 
					
						
							|  |  |  |         call_garage_check: 1
 | 
					
						
							|  |  |  |         call_window_check: 1
 | 
					
						
							|  |  |  |         call_light_check: 1
 |