mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 04:06:03 +01:00
Merge pull request #478 from mampfes/docu_for_refactor_scraper
add docu for new source_index option
This commit is contained in:
19
README.md
19
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:
|
||||
|
||||

|
||||
|
||||
- ```generic``` provides all attributes as generic Python data types. This can be used by a specialized Lovelace card (which doesn't exist so far).<br>
|
||||
- ```generic``` provides all attributes as generic Python data types. This can be used by a specialized Lovelace card (which doesn't exist so far).
|
||||
|
||||

|
||||
|
||||
@@ -695,6 +704,10 @@ Go to `Settings` --> `Entities` and select the calendar entity provided by Waste
|
||||
|
||||
[](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`).
|
||||
|
||||
Reference in New Issue
Block a user