From 9f8dc9024ff74eada5874b3b685d917956a1a650 Mon Sep 17 00:00:00 2001 From: mampfes Date: Sat, 17 Dec 2022 14:21:03 +0100 Subject: [PATCH] add docu for new source_index option --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b6ebc9a2..c30bb12d 100644 --- a/README.md +++ b/README.md @@ -398,9 +398,18 @@ sensor: **source_index** -*(integer) (optional, default: ```0```)* +*(integer or list of integers) (optional, default: ```0```)* -Reference to source (service provider). Used to assign a sensor to a specific source. Only required if you defined more than one source. The first defined source has the source_index 0, the second source 1, ... +Reference to source (service provider). Used to assign a sensor to a specific source. Only required if you defined more than one source. The first defined source in `configuration.yaml` has the source_index 0, the second source 1, ... +If you want to have a sensor which combines the data from multiple sources, just add a list of sources here. +Example: +```yaml + source_index: [0, 1] +#or + source_index: + - 0 + - 1 +``` **name** @@ -424,7 +433,7 @@ Possible choices: ![Waste Types](/doc/more-info-appointment-types.png) -- ```generic``` provides all attributes as generic Python data types. This can be used by a specialized Lovelace card (which doesn't exist so far).
+- ```generic``` provides all attributes as generic Python data types. This can be used by a specialized Lovelace card (which doesn't exist so far). ![Generic](./doc/more-info-generic.png) @@ -695,6 +704,10 @@ Go to `Settings` --> `Entities` and select the calendar entity provided by Waste [![entities](https://my.home-assistant.io/badges/entities.svg)](https://my.home-assistant.io/redirect/entities/) +### 15. I have configured multiple sources, but the sensors show only *UNAVAILABLE* + +You probably missed to add `source_index` to the sensor configuration. + ## How to add new sources 1. Create a new source in folder `custom_components/waste_collection_schedule/waste_collection_schedule/source` with the lower case url of your service provider (e.g. `abc_com.py` for `http://www.abc.com`).