Extended support for Tibber electricity prices in Home Assistant
Find a file
2025-11-03 20:55:28 +00:00
.copilot add copilot instructions 2025-04-23 17:46:12 +00:00
.devcontainer update dev environment 2025-11-03 15:54:01 +00:00
.github update dev environment 2025-11-03 15:54:01 +00:00
config update dev environment 2025-11-03 15:54:01 +00:00
custom_components/tibber_prices add lots of new sensors 2025-11-03 20:55:28 +00:00
scripts fix linter issues 2025-11-03 20:52:10 +00:00
tests update dev environment 2025-11-03 15:54:01 +00:00
.editorconfig refactoring devcontainer 2025-04-23 18:27:46 +00:00
.gitattributes Initial commit 2025-04-18 14:32:54 +02:00
.gitignore update dev environment 2025-11-03 15:54:01 +00:00
.pre-commit-config.yaml add lots of new sensors 2025-11-03 20:55:28 +00:00
.prettierignore refactoring devcontainer 2025-04-23 18:27:46 +00:00
AGENTS.md add symlinks for agents 2025-11-03 17:45:25 +00:00
CLAUDE.md add symlinks for agents 2025-11-03 17:45:25 +00:00
CONTRIBUTING.md update dev environment 2025-11-03 15:54:01 +00:00
hacs.json bump version 2025-11-02 14:09:10 +00:00
LICENSE Rename component 2025-04-18 12:51:32 +00:00
pyproject.toml add lots of new sensors 2025-11-03 20:55:28 +00:00
README.md update translations 2025-11-03 09:53:19 +00:00
requirements.txt update dev environment 2025-11-03 15:54:01 +00:00

Tibber Price Information & Ratings

GitHub Release GitHub Activity License

hacs Project Maintenance BuyMeCoffee

A Home Assistant integration that provides advanced price information and ratings from Tibber. This integration allows you to monitor electricity prices, price levels, and rating information to help you optimize your energy consumption and save money.

Tibber Price Information & Ratings

Features

  • Current and Next Hour Prices: Get real-time price data in both EUR and cents/kWh
  • Price Level Indicators: Know when you're in a low, normal, or high price period
  • Statistical Sensors: Track lowest, highest, and average prices for the day
  • Price Ratings: Quarterly-hour ratings to understand how current prices compare to historical data
  • Smart Indicators: Binary sensors to detect peak hours and best price hours for automations
  • Diagnostic Sensors: Monitor data freshness and availability

Installation

  1. Ensure HACS is installed in your Home Assistant instance
  2. Go to HACS > Integrations > Click the three dots in the top right > Custom repositories
  3. Add this repository URL: https://github.com/jpawlowski/hass.tibber_prices
  4. Click "Add"
  5. Search for "Tibber Price Information & Ratings" in the Integrations tab
  6. Click "Install"
  7. Restart Home Assistant

Manual Installation

  1. Copy the custom_components/tibber_prices directory from this repository into your Home Assistant's custom_components directory
  2. Restart Home Assistant

Configuration

Requirements

  • A Tibber account with an active subscription
  • A Tibber API access token (obtain from developer.tibber.com)

Setup Process

  1. Go to Settings > Devices & Services in your Home Assistant UI
  2. Click the + ADD INTEGRATION button in the bottom right
  3. Search for "Tibber Price Information & Ratings"
  4. Enter your Tibber API access token when prompted
  5. Click "Submit"

Available Entities

Price Sensors

Entity Description Unit Default Enabled
Current Electricity Price The current hourly price ct/kWh Yes
Current Electricity Price (EUR) The current hourly price No
Next Hour Electricity Price The price for the upcoming hour ct/kWh Yes
Next Hour Electricity Price (EUR) The price for the upcoming hour No
Current Price Level Tibber's classification of the price (VERY_CHEAP, CHEAP, NORMAL, EXPENSIVE, VERY_EXPENSIVE) - Yes

Statistical Sensors

Entity Description Unit Default Enabled
Today's Lowest Price The lowest price for the current day ct/kWh Yes
Today's Lowest Price (EUR) The lowest price for the current day No
Today's Highest Price The highest price for the current day ct/kWh Yes
Today's Highest Price (EUR) The highest price for the current day No
Today's Average Price The average price for the current day ct/kWh Yes
Today's Average Price (EUR) The average price for the current day No

Rating Sensors

Entity Description Unit Default Enabled
Quarter-Hourly Price Rating How the quarter price compares to historical data % Yes

Binary Sensors

Entity Description Default Enabled
Peak Hour Whether the current hour is in the top 20% of prices for the day Yes
Best Price Hour Whether the current hour is in the bottom 20% of prices for the day Yes
Tibber API Connection Shows connection status to the Tibber API Yes

Diagnostic Sensors

Entity Description Default Enabled
Last Data Update Timestamp of the most recent data update Yes
Tomorrow's Data Status Indicates if tomorrow's price data is available (Yes/No/Partial) Yes

Automation Examples

Run Appliances During Cheap Hours

automation:
    - alias: "Run Dishwasher During Cheap Hours"
      trigger:
          - platform: state
            entity_id: binary_sensor.tibber_best_price_hour
            to: "on"
      condition:
          - condition: time
            after: "21:00:00"
            before: "06:00:00"
      action:
          - service: switch.turn_on
            target:
                entity_id: switch.dishwasher

Notify on Extremely High Prices

automation:
    - alias: "Notify on Very Expensive Electricity"
      trigger:
          - platform: state
            entity_id: sensor.tibber_current_price_level
            to: "VERY_EXPENSIVE"
      action:
          - service: notify.mobile_app
            data:
                title: "⚠️ High Electricity Prices"
                message: "Current electricity price is in the VERY EXPENSIVE range. Consider reducing consumption."

Troubleshooting

No data appearing

  1. Check your API token is valid at developer.tibber.com
  2. Verify you have an active Tibber subscription
  3. Check the Home Assistant logs for detailed error messages
  4. Restart the integration by going to Configuration > Integrations > Tibber Price Information & Ratings > Options

Missing tomorrow's price data

  • Tomorrow's price data usually becomes available between 13:00 and 15:00 each day
  • If data is still unavailable after this time, check the Tibber app to see if data is available there

Contributing

If you want to contribute to this project, please read the Contributing Guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.