Add documantation for service

This commit is contained in:
Benjamin
2022-12-28 12:29:24 +01:00
committed by GitHub
parent 58308b43e1
commit c7db195fe7

View File

@@ -135,6 +135,14 @@ The following variables can be used within `value_template` and `date_template`:
| `value.daysTo` | Days to collection | int | 0 = today, 1 = tomorrow, etc |
| `value.types` | Waste types | list of strings | Use `join` filter to join types |
## HomeAssistant Service to manually update the source
If you want to manually update the source, you can call the service:
`waste_collection_schedule.source_update`
Normally the configuration parametet 'fetch_time' is used to do this periodically.
## Further help ##
For a full example, see [custom_components/waste_collection_schedule/waste_collection_schedule/source/example.py](/custom_components/waste_collection_schedule/waste_collection_schedule/source/example.py).