This component will set up the following platforms.
Platform | Description |
---|---|
sensor |
Show info from Luas API. |
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledluas
. - Download all the files from the
custom_components/luas/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Luas"
Using your HA configuration directory (folder) as a starting point you should now also have this:
custom_components/luas/__init__.py
custom_components/luas/manifest.json
custom_components/luas/luasforecasts.py
custom_components/luas/sensor.py
To activate the sensor add the data to your configuration.yaml
file as shown in the example:
sensor:
- platform: luas
station: BRI
direction: inbound
station
- Required
- The abbreviated name of the station; see list at https://luasforecasts.rpa.ie/analysis/view.aspx
direction
- Optional
- Either "inbound" or "outbound"; filters to only trams with this direction
destination
- Optional
- Name of destination; filters to only trams with this destination
name
- Optional
- Change name of sensor
If you want to contribute to this please read the Contribution guidelines
This project was generated from @oncleben31's Home Assistant Custom Component Cookiecutter template.
Code template was mainly taken from @Ludeeus's integration_blueprint template