Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stability-wip

Version maintained

maintainer

hacs_badge

Brandrisk Ute

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:

  1. Current risk
  2. 3 days forecast
  3. Fire prohibition

Installation:

  1. Use HACS, in HACS > Integrations > Explore & Add Repositories search for "Brandrisk Ute". After adding this https://github.com/alandtse/tesla as a custom repository. Skip to 7.
  2. 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).
  3. If you do not have a custom_components directory (folder) there, you need to create it.
  4. In the custom_components directory (folder) create a new folder called brandriskute.
  5. Download all the files from the custom_components/brandriskute/ folder in this repository.
  6. Place the files you downloaded in the new directory (folder) you created.
  7. Inside that folder, create another folder named brandriskute.
  8. Restart Home Assistant.
  9. Add the integration: Add 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') }}

Buy Me A Coffee

About

The custom component will get fire risks and fire prohibition from the Brandrisk Ute API for the supplied position.

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages