cyberjunky / home-assistant-toon_smartmeter

This component reads and displays sensor values from the meteradapter connected to a rooted Toon thermostat.
MIT License
27 stars 13 forks source link
custom-component hacs home-assistant homeassistant python

hacs_badge made-with-python Donate

Toon Smart Meter Sensor Component

This is a Custom Component for Home-Assistant (https://home-assistant.io) reads and displays sensor values from the meteradapter connected to a rooted Toon thermostat.

NOTE: This component only works with rooted Toon devices. Toon thermostats are available in The Netherlands and Belgium (as Boxx).

More information about rooting your Toon can be found here: Eneco Toon as Domotica controller

Installation

HACS - Recommended

Manual

Usage

To use this component in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry

sensor:
  - platform: toon_smartmeter
    host: IP_ADDRESS
    port: 80
    scan_interval: 10
    resources:
      - gasused
      - gasusedcnt
      - elecusageflowpulse
      - elecusagecntpulse
      - elecusageflowlow
      - elecusagecntlow
      - elecusageflowhigh
      - elecusagecnthigh
      - elecprodflowlow
      - elecprodcntlow
      - elecprodflowhigh
      - elecprodcnthigh
      - elecsolar
      - elecsolarcnt
      - heat
      - waterflow
      - waterquantity
    powerplugs:
      - KoffieStekker
      - Server

Configuration variables:

alt text

If you want them grouped instead of having the separate sensor badges, you can use this in your groups.yaml:

# Example groups.yaml entry

Smart Meter:
  - sensor.toon_gas_used_last_hour
  - sensor.toon_gas_used_cnt
  - sensor.toon_power_use_cnt
  - sensor.toon_power_use
  - sensor.toon_p1_power_prod_low
  - sensor.toon_p1_power_prod_high
  - sensor.toon_p1_power_prod_cnt_low
  - sensor.toon_p1_power_prod_cnt_high
  - sensor.toon_p1_power_use_cnt_pulse
  - sensor.toon_p1_power_use_cnt_low
  - sensor.toon_p1_power_use_cnt_high
  - sensor.toon_p1_power_use_low
  - sensor.toon_p1_power_use_high
  - sensor.toon_p1_power_solar
  - sensor.toon_p1_power_solar_cnt
  - sensor.toon_p1_heat
  - sensor.toon_p1_waterflow
  - sensor.toon_p1_waterquantity

Power Plugs:
  - sensor.toon_koffiestekker_powerplug_power_use
  - sensor.toon_koffiestekker_powerplug_power_use_cnt

Screenshots

alt text alt text alt text

Energy Dashboard

You can configure your dashboard like so: alt text

Tricks

Get usage of your house, disregarding current tarif

sensor:
  - platform: template
    sensors:
      energie_verbruik_totaal:
        friendly_name: "Energieverbruik"
        unit_of_measurement: 'W'
        icon_template: mdi:lightning-bolt
        value_template: "{{ states('sensor.toon_p1_power_use_low') | int + states('sensor.toon_p1_power_use_high') | int }}"

Calculate Gas used today

utility_meter:
  gasverbruik_vandaag:
    name: "Gas Verbruik Vandaag"
    source: sensor.toon_gas_used_cnt
    cycle: daily

Debugging

Add the relevant lines below to the configuration.yaml:

logger:
  default: info
  logs:
    custom_components.toon_smartmeter: debug

Donation

Donate