popeen / Home-Assistant-Custom-Component-Temperatur-Nu

A sensor for temperatur.nu and a service for reporting your current temperature

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home Assistant Custom Component: Temperatur.nu

GitHub Release Project Stage issues-shield License hacs_badge

Buy me a coffee

This custom component includes a sensor for temperatur.nu as well as a service for reporting your current temperature

Sensor
This sensor will show the current temperature on the set location

Parameter What to put
name What do you want to call the sensor
location This is the name of the station on temperatur.nu. You will find it at the end of the url for the station. In the example we are using https://www.temperatur.nu/ekholmen
sensor:
  - platform: temperatur_nu
    name: Temperatur Ekholmen
    location: ekholmen

Reporting service
This service will send your current temperature to temperatur.nu.
You will need the hash/token that you get when setting up your station. If you have a station set up already but don't know your token you can find it here

To register the service in HA you need to either set up a sensor or add this to your configuration.yaml file

temperatur_nu:
Parameter What to put
hash Your private hash
sensor The sensor that contains your current temperature
service: temperatur_nu.send_temperature
data:
  sensor: sensor.temperature_outdoor_lowest
  hash: 3d8dummy32c18dummye2d87adummy63f


About

A sensor for temperatur.nu and a service for reporting your current temperature

License:MIT License


Languages

Language:Python 100.0%