Code Monkey home page Code Monkey logo

sensor.krisinformation's Introduction

stability-wip

Version maintained

maintainer

sensor.krisinformation

Component to get Krisinformation for Home Assistant.

Will get all messages from Krisinformations api in a set radius from your coordinates. If one of the fetched messages is an alert as opposed to news, the state of the sensor will be "Alert". The sensor contains all fetched messages as objects.

Use together with custom card for Lovelace.

Krisinformation Lovelace Card

This component is supported by Custom updater and Tracker card.

Installation:

  1. Install this component by creating a custom_components folder in the same folder as your configuration.yaml is, if you don't already have one.
  2. Inside that folder, create another folder named krisinformation. Put the contents of the custom_components folder in there.
  3. You will need to restart after installation for the component to start working.
  4. Add the integration in the Configuration GUI under integrations

Usage

Example automation for getting a notification when the sensor has an alert: Make sure you change the sensor name if you didn't use the default name.

automation:
  - alias: 'Krisinformation Alert'
    initial_state: 'on'
    trigger:
      platform: state
      entity_id: sensor.krisinformation
      to: "Alert"
    action:
      - service: notify.my_phone
        data_template:
          message: >
            {{states.sensor.krisinformation.attributes.messages[0].Headline}} - {{states.sensor.krisinformation.attributes.messages[0].Message}} {{states.sensor.krisinformation.attributes.messages[0].Web}}

Like my work and want to say thanks? Do it here:

Buy Me A Coffee

Changelog

Changes

sensor.krisinformation's People

Contributors

isabellaalstrom avatar lociii avatar dsorlov avatar naesstrom avatar naterobinsons avatar tubalainen avatar yabbah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.