mirror of
				https://github.com/house-of-abbey/GarminHomeAssistant.git
				synced 2025-10-31 15:48:13 +00:00 
			
		
		
		
	Add light effect selector example to Select.md
Added an example of a light effect selector in JSON format. Signed-off-by: Joseph Abbey <me@josephabbey.dev>
This commit is contained in:
		
							
								
								
									
										60
									
								
								examples/Select.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								examples/Select.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,60 @@ | |||||||
|  | # Selects | ||||||
|  |  | ||||||
|  | Here is an example of how to make a light effect selector: | ||||||
|  |  | ||||||
|  | ```json | ||||||
|  | { | ||||||
|  |   "type": "group", | ||||||
|  |   "name": "Example", | ||||||
|  |   "title": "Light Effect", | ||||||
|  |   "content": "{{ state_attr('light.moon', 'effect') }}", | ||||||
|  |   "items": [ | ||||||
|  |     { | ||||||
|  |       "type": "tap", | ||||||
|  |       "name": "None", | ||||||
|  |       "entity": "light.example", | ||||||
|  |       "tap_action": { | ||||||
|  |         "service": "light.turn_on", | ||||||
|  |         "data": { | ||||||
|  |           "effect": "None" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "type": "tap", | ||||||
|  |       "name": "Rainbow", | ||||||
|  |       "entity": "light.example", | ||||||
|  |       "tap_action": { | ||||||
|  |         "service": "light.turn_on", | ||||||
|  |         "data": { | ||||||
|  |           "effect": "Rainbow" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "type": "tap", | ||||||
|  |       "name": "Glimmer", | ||||||
|  |       "entity": "light.example", | ||||||
|  |       "tap_action": { | ||||||
|  |         "service": "light.turn_on", | ||||||
|  |         "data": { | ||||||
|  |           "effect": "Glimmer" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "type": "tap", | ||||||
|  |       "name": "Twinkle", | ||||||
|  |       "entity": "light.example", | ||||||
|  |       "tap_action": { | ||||||
|  |         "service": "light.turn_on", | ||||||
|  |         "data": { | ||||||
|  |           "effect": "Twinkle" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   ] | ||||||
|  | } | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | The same pattern works for any selector (`input_select.*`, `select.*`, `climate.*` mode). | ||||||
		Reference in New Issue
	
	Block a user