danmed / Glow2MQTT

Apache License 2.0
10 stars 2 forks source link

Glow2MQTT

NOTE : I make stuff for my own requirements.. the code works but it'll likely be inneficient.. i'm happy to take criticisms / requests / PR's but i may not always implement them... hey.. if it works then don't fix it!

This is just a shell script to allow easy scheduling of the pyglowmarkt project by cybermageddon : https://github.com/cybermaggedon/pyglowmarkt

It will provide (optionally) Electricity and Gas readings and pass them to MQTT. From there you can add them to HomeAssistant and integrate them with the Energy Dashboard. (or whatever else you want to do with the data!

You will need a glowmarkt.com account (free.. no need for their IHD) linked to your provider and receiving readings from your SMETS2 meter. This will only give you the halfhourly increments, but seeing as the energy dashboard in HA only reports hourly figures, it works just fine.

OS : ONLY TESTED ON UBUNTU 20.04

DEPENDENCIES :

SETUP :

HA YAML code for MQTT Consumption Sensor :

  - platform: mqtt
    name: glow_energy_today
    state_topic: "glowmarkt/elecconsumptiontoday"
    unit_of_measurement: 'kWh'  
    device_class: energy
    state_class: total_increasing

HA YAML code for MQTT Cost Sensor :

  - platform: mqtt
    name: glow_cost_today
    state_topic: "glowmarkt/eleccosttoday"
    unit_of_measurement: '£'  
    value_template: "{{ (value | float | round(2)) }}"
    device_class: energy
    state_class: total_increasing

image

image