Component to get swedish outdoors fire risks for Home Assistant.
The custom compontnet will, while using the supplied position, get fire risks and fire prohibition information from MSB's Brandrisk Ute API. The plugin supplies three different sensors:
- Current risk
- 3 days forecast
- Fire prohibition
- Use HACS, in
HACS > Integrations > Explore & Add Repositoriessearch for "Brandrisk Ute". After adding thishttps://github.com/alandtse/teslaas a custom repository. Skip to 7. - If you do not have HACS, use the tool of choice to open the directory (folder) for your HA configuration (where you find
configuration.yaml). - If you do not have a
custom_componentsdirectory (folder) there, you need to create it. - In the
custom_componentsdirectory (folder) create a new folder calledbrandriskute. - Download all the files from the
custom_components/brandriskute/folder in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Inside that folder, create another folder named
brandriskute. - Restart Home Assistant.
- Add the integration:
or in the HA UI go to "Settings" -> "Devices & Services" then click "+" and search for Brandrisk
Configuration variables:
| key | type | description |
|---|---|---|
| latitude (required) | string | The latitude of the position from which the sensor should look for fire risks messages. Default home zone latitude |
| longitude (required) | string | The longitude of the position from which the sensor should look for fire risks messages. Default home zone longitude |
| name (required) | string | Custom name for the sensor. Default Brandrisk Ute. |
| verbose (Optional) | boolean | Use full information or the the basics only. Default True |
| forecast (Optional) | boolean | Use forecast sensor. Default True |
| prohibition (Optional) | boolean | Use prohibition sensor. Default True |
Example automation using prohibition change
alias: 'Eldningsförbud Alert'
initial_state: 'on'
trigger:
- platform: state
entity_id: sensor.brandrisk_orebro_prohibition
action:
- service: notify.mobile_app_user
data:
message: "{{ states('sensor.brandrisk_orebro_prohibition') }} {{ state_attr('sensor.brandrisk_orebro_prohibition', 'startDate') }} {{ state_attr('sensor.brandrisk_orebro_prohibition', 'description') }}