Sign inSign up

klaspihl/node-red-p1power

By klaspihl

Updated 9 months ago

Swedish power meter metrics to Home assistant over Mqtt

Image
Internet of things
0

2.3K

klaspihl/node-red-p1power repository overview

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

Tag summary

Content type

Image

Digest

sha256:b6f847799

Size

278.1 MB

Last updated

9 months ago

docker pull klaspihl/node-red-p1power