slesinger / HomeAssistant-PREdistribuce

Home Assistant integration to display info about energy plan

Home Page:https://slesinger.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PRE Distribuce - Home Assistant Sensor

Notice: I am no longer using PRE services. I am looking for someone with higher motivation, who will take over maintenance of this repository. Thank you.

hacs_badge

This sensor is scraping data from https://www.predistribuce.cz/cs/potrebuji-zaridit/zakaznici/stav-hdo/. Put id of receiver command (see contract with PRE CZ or your energy meter) in configuration.yaml

This sensor always show

  • current state of HDO
  • HTML to render schedule bar
  • time to reach low tariff or time needed to wait for low tarrif

optionally also

  • if a an applience (e.g. washing machine) can be run now to finish under low tariff

Note: Are you customer of CEZ? Look here: https://github.com/zigul/HomeAssistant-CEZdistribuce

Installation

Copy this folder to <config_dir>/custom_components/predistribuce/.

Add the following to your configuration.yaml file:

# Example configuration.yaml entry for showing current HDO state and HTML for rendering a time schedule
binary_sensor:
  platform: predistribuce
  name: nocni proud
  receiver_command_id: 605
# entry as above + extra binary sensors that show if a an applience (e.g. washing machine) can be run now to finish under low tariff
binary_sensor:
  - platform: predistribuce
    receiver_command_id: 605
    periods:
      - name: HDO Pračka
        minutes: 30
      - name: HDO Myčka
        minutes: 150

PRE Schedule Bar

You can display visually low/high tarrif overview throughout the day.

screenshot

Prerequisite is to install Lovelace Html Card, ideally from HACS. Once installed, create a new Lovelace card manually. Paste following content inside:

type: 'custom:html-card'
title: PRE tarif
content: |
  [[binary_sensor.hdo_aktualne.attributes.html_values]]

Do not forget to replace hdo_aktualne by your entity name.

About

Home Assistant integration to display info about energy plan

https://slesinger.info

License:Apache License 2.0


Languages

Language:Python 100.0%