This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install openpyxl pyTibber | |
import tibber | |
import openpyxl | |
YOUR_TIBBER_TOKEN = 'd1007ead2dc84a2b82f0de19451c5fb22112f7ae11d19bf2bedb224a003ff74a' | |
if __name__ == '__main__': | |
tibber_connection = tibber.Tibber(access_token=YOUR_TIBBER_TOKEN) | |
tibber_connection.sync_update_info() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: High electricity price | |
description: 'This automation blueprint sends a notification on high energy price.' | |
domain: automation | |
input: | |
energy_sensor: | |
name: Tibber price sensor | |
selector: | |
entity: | |
integration: tibber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Support for Tibber sensors.""" | |
from __future__ import annotations | |
import asyncio | |
from dataclasses import dataclass | |
from datetime import timedelta | |
from enum import Enum | |
import logging | |
from random import randrange | |
from tibber.const import RESOLUTION_DAILY |