add source multiple to combine multiple sources to one Entity (#1810)

* add source multiple to combine multiple sources to one Entity

* typo

---------

Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
This commit is contained in:
5ila5
2024-03-03 00:13:01 +01:00
committed by GitHub
parent 935bfc55d2
commit 429df282c8
5 changed files with 296 additions and 1 deletions

View File

@@ -38,6 +38,8 @@ To use Waste Collection Schedules, additional entries need to be made in your `c
If you have to fetch data from multiple service providers, you have to add multiple sources. You can also add the same service provider multiple times. This only makes sense if you use it with different arguments, e.g. you are looking to display waste collection schedules for multiple districts served by the same provider.
If you prefer to combine the data into one calendar entity, you can use the [multiple](/doc/source/multiple.md) wrapper source.
2. Configuring sensor(s)
Sensors are used to visualize the retrieved information, e.g. waste type, next collection date, or number of days to next collection. The sensor state (which can be shown in a Lovelace/Mushroom cards) can be customized using templates. For example, you can display the collection type only, or the next collection date, or a combination of all available information.
@@ -162,6 +164,8 @@ Examples:
## Combine Data from multiple Sources
### Combine Sensor Data
To combine data from multiple sources into one sensor, just add the source indexes like that:
```yaml
@@ -172,6 +176,10 @@ To combine data from multiple sources into one sensor, just add the source index
- 1
```
### Combine Source Data
If you prefer to combine the data into one calendar entity, you can use the [multiple](/doc/source/multiple.md) wrapper source.
## HomeAssistant Service to manually trigger update
If you want to trigger a manual update of the sources, you can call the service: