octera / energy-center

PI with Screen integrated in my panel board to gather energy distribution information and display some information
Apache License 2.0
2 stars 2 forks source link

Tasmota -> MQTT -> fakeSungrowMeter #2

Open Silencer80 opened 12 months ago

Silencer80 commented 12 months ago

Dear Octera,

thank you very much for the great script.

I would like to use your script with my Sungrow SG12RT and get my data via MQTT from a Tasmota IR-Reader (Hichi IR WIFi) attached to our meter.

Do I understand the code correctly that your script wants to subscribe the meter readings for purchase and delivery as INT32 from the MQTT?

I currently get this from the Tasmota:

{ "Time": "2023-09-11T13:23:47", "SML": { "server_id": "XXXXXXXXXXXXXX", "total_kwh": 2932.2276, "export_total_kwh": 8431.3661, "Power_curr": -7920, "volt_p1": 244.8, "volt_p2": 244, "volt_p3": 244.6, "amp_p1": 10.9, "amp_p2": 10.4, "amp_p3": 11.3, "phase_angle_l2_l1": 120, "phase_angle_l3_l1": 239, "phase_angle_p1": 183, "phase_angle_p2": 183, "phase_angle_p3": 187, "freq": 50 } }

tele/XXXXXXXXX/SENSOR

grafik

I probably only need to round this data as INT32 under ...

tele/XXXXXXXXX/SENSOR/Power_curr -> powerinfo/grid (current power +/-) tele/XXXXXXXXX/SENSOR/total_kwh -> powerinfo/totalIndex (from the grid) tele/XXXXXXXXX/SENSOR/export_total_kwh -> powerinfo/totalInjIndex (delivery to the grid)

.. and provide it to your Script?

The script can then simulates a DTSU666 via RS485-USB-Converter?

I don't know the Golang language, and will be glad if you can help me!

Many thanks for your support! -Boris

Egyras commented 1 month ago

@octera any update, would like to make same :) @Silencer80 did you managed to make ?

Silencer80 commented 1 month ago

@octera any update, would like to make same :) @Silencer80 did you managed to make ?

A Friend implemented this:

https://gitlab.com/john.j.cool/edge/iot/open-smart-meter

We are using this for month now without Problems.

Egyras commented 1 month ago

@octera any update, would like to make same :) @Silencer80 did you managed to make ?

A Friend implemented this:

https://gitlab.com/john.j.cool/edge/iot/open-smart-meter

We are using this for month now without Problems.

@Silencer80 interesting project, you run container on rpi? What mqtt values must be provided? Would be nice to have better documentation for implementation :)