Description of entity-filter use
This commit is contained in:
		
							parent
							
								
									3ae2c4e8dc
								
							
						
					
					
						commit
						1cb48457d2
					
				
							
								
								
									
										35
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								README.md
									
									
									
									
									
								
							| @ -60,3 +60,38 @@ entities: | ||||
| ``` | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
| 
 | ||||
| #### Use with entity-filter | ||||
| The `items` list can be populated by `entity-filter` using a trick: | ||||
| 
 | ||||
| ```yaml | ||||
| type: entities | ||||
| title: Entity Filter Fold | ||||
| entities: | ||||
|   - type: custom:hui-entity-filter-card | ||||
|     entities: | ||||
|       - light.bed_light | ||||
|       - light.ceiling_lights | ||||
|       - light.kitchen_lights | ||||
|     state_filter: | ||||
|       - "on" | ||||
|     card: | ||||
|       type: custom:fold-entity-row | ||||
|       head: | ||||
|         type: section | ||||
|         label: Lit lamps | ||||
| 
 | ||||
|   - type: custom:hui-entity-filter-card | ||||
|     entities: | ||||
|       - light.bed_light | ||||
|       - light.ceiling_lights | ||||
|       - light.kitchen_lights | ||||
|     state_filter: | ||||
|       - "off" | ||||
|     card: | ||||
|       type: custom:fold-entity-row | ||||
|       head: | ||||
|         type: section | ||||
|         label: Unlit lamps | ||||
| ``` | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user