Skip to content

Landis+Gyr consumtion metrics sensors to Home assistant by mqtt

License

Notifications You must be signed in to change notification settings

klaspihl/Node-Red-p1power

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Landis+Gyr energy metrics to Home assistant

Creates Home assistant sensors using mqtt monitor power consumption by serial interface.

Installation

Docker run

docker run -it --rm -p 1880:1880 --name p1power /
-e MQTTServer=mqtt.dev.local -e mqttserverport=1883  /
  --device /dev/USB2:/dev/ttyUSB0 klaspihl/node-red-p1power

Docker-compose

services:
  nodered:
    image: klaspihl/node-red-p1power:latest
    environment:
      - MQTT_Server=mqtt.dev.local
      - MQTT_Server_Port=1883
    ports:
      - "1880:1880"
    devices:
      - /dev/USB2:/dev/ttyUSB0

Usage

MQTT server and port configurable by environment variables. If credentials is needed open flow and set.

Admin password to node-red: power

Project

Github

Result

Home assistant entities Home assistant dashboard

Apexcharts

Apexcharts

apexcharts-card yaml

type: custom:apexcharts-card
graph_span: 1h
yaxis:
  - max: '|+0|'
    decimals: 1
    opposite: true
hours_12: false
stacked: true
series:
  - entity: sensor.energy_meter_energy_phase_1
    name: L1
    color: gray
    stroke_width: 1
    type: area
    group_by:
      func: max
      duration: 1m
  - entity: sensor.energy_meter_energy_phase_2
    name: L2
    color: darkgray
    stroke_width: 1
    type: area
    group_by:
      func: max
      duration: 1m
  - entity: sensor.energy_meter_energy_phase_3
    name: L3
    color: darkblue
    stroke_width: 1
    type: area
    group_by:
      func: max
      duration: 1m
  - entity: sensor.energy_meter_energy_effekt_uttag
    name: total
    stroke_width: 0
    group_by:
      func: max
      duration: 1m

About

Landis+Gyr consumtion metrics sensors to Home assistant by mqtt

Topics

Resources

License

Stars

Watchers

Forks