mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 03:04:09 +01:00
add sensor examples
This commit is contained in:
24
README.md
24
README.md
@@ -237,6 +237,30 @@ Examples:
|
||||
|
||||
## Examples
|
||||
|
||||
### Individual sensors
|
||||
|
||||
Add multiple sensors if you want to have individual information:
|
||||
|
||||

|
||||
|
||||
```yaml
|
||||
sensor:
|
||||
- platform: waste_collection_schedule
|
||||
name: next_waste_collection_type
|
||||
details_format: upcoming
|
||||
value_template: '{{value.types|join(", ")}}'
|
||||
|
||||
- platform: waste_collection_schedule
|
||||
name: next_waste_collection_date
|
||||
details_format: upcoming
|
||||
value_template: '{{value.date.strftime("%d.%m.%Y")}}'
|
||||
|
||||
- platform: waste_collection_schedule
|
||||
name: next_waste_collection_daysto
|
||||
details_format: upcoming
|
||||
value_template: '{{value.types|join(", ")}} in {{value.daysTo}} days'
|
||||
```
|
||||
|
||||
### Button Cards
|
||||
|
||||
[Button Cards](https://github.com/custom-cards/button-card) can be used to create individual widgets:
|
||||
|
||||
BIN
doc/sensor-examples.png
Normal file
BIN
doc/sensor-examples.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user