mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-02 01:07:36 +00:00
1.6 KiB
1.6 KiB
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_category | ha_release | ha_qa_scale | ha_iot_class |
---|---|---|---|---|---|---|---|---|---|---|---|---|
page | Tibber Sensor | Instructions on how to integrate Tibber within Home Assistant. | 2017-10-03 17:00 | true | false | true | true | tibber.png | Energy | 0.55 | silver | Cloud Polling |
The tibber
sensor provides the current electricity price if you are a Tibber customer.
If you have a Tibber Pulse it will also show the electricity consumption in real time.
The requirement is that you have setup the tibber
component.
{% linkable_title Examples %}
In this section, you will find some real-life examples of how to use this sensor.
{% linkable_title Electricity price %}
The electricity price can be used to make automations. The sensor has a max_price
and min_price
attribute, with max and min price for the current day. Here is an example to get a notification when the price is above 90% of the maximum price for the day:
{% raw %}
- alias: "Electricity price"
trigger:
platform: time
# Matches every hour at 1 minutes past whole
minutes: 1
seconds: 00
condition:
condition: template
value_template: '{{ float(states.sensor.electricity_price_hamretunet_10.state) > 0.9 * float(states.sensor.electricity_price_hamretunet_10.attributes.max_price) }}'
action:
- service: notify.pushbullet
data:
title: "Electricity price"
target: "device/daniel_telefon_cat"
message: "The electricity price is now {{ states.sensor.electricity_price_hamretunet_10.state }}"
{% endraw %}