Skip to content
Manos1966 edited this page Mar 30, 2024 · 29 revisions

Power Meter supports 5 different modes

  • SDM 1 phase (SDM120/220/230)
  • SDM 3 phase (SDM72/630)
  • HTTP(S)+JSON
  • SML (OBIS 16.7.0)
  • SMA HomeManager 2.0
  • MQTT

Examples for HTTP(S) + JSON:

Shelly 3EM: Working configuration:

Discussion: #331

Bildschirmfoto 2023-08-19 um 20 36 59

Tasmota

Tasmota returns values and names based on the definitions you put in the script.

The standard command http://192.168.xxx.xxx/cm?cmnd=status%208 (where 192.168.xxx.xxx is the IP Adress of your Tasmota) will return the values that are available, for example:

{ "StatusSNS": { "Time": "2023-12-10T20:17:41", "Wohnung": { "server_id": "0a01415041010557ff7d", "total_kwh": 819.9, "export_total_kwh": 251.48, "aktuelle_Wirkleistung": 557, "freq": 50, "amp_p1": 0.98, "amp_p2": 0.45, "amp_p3": 1.46, "curr_w_p1": 184, "curr_w_p2": 82, "curr_w_p3": 289, "volt_p1": 240.8, "volt_p2": 240.9, "volt_p3": 241.3, "phase_angle_l2_l1": 238, "phase_angle_l3_l1": 118, "phase_angle_p1": 330, "phase_angle_p2": 325, "phase_angle_p3": 333 } } }

In this case, the value aktuelle_Wirkleistung is the one we need.

In order to extract the correct value, you need to notice the number of curly brackets { and the titles

Based on the example above: {"StatusSNS": {"Wohnung": {"aktuelle_Wirkleistung": 557

Subsequently the JSON Pfad you need to enter is:

StatusSNS/Wohnung/aktuelle_Wirkleistung

Power Meter Tasmota 01

Examples for MQTT:

  • Tasmota and MQTT, push seperate values with rules #344

Power Meter uses the same MQTT Server you have defined under Settings-> MQTT Settings

Then, go to Settings -> Power Meter and you can define up to three topics.

There is an example in every line but keep in mind, these are inactive. If you need exactly the same, you have to re-type it yourself. Capture

Important: For the time being, the MQTT Functionality is not as advanced as with HTTP(s)+JSON

The Topic you choose, must deliver a single value. No JSON Objects, no Strings can be used.

If you are not sure what Data your MQTT Server receives, monitor his log for a while. For example:

None of these Topics (List from MQTT Server) will work: Capture

The first three Topics below will work: Untitled

IF you have problems seeing the data you expect in Live View, it is useful to go to Info-> Console

Messages like this imply that your MQTT Server refused the connection

17:35:55.099 Connecting to MQTT..

17:35:56.209 PowerMeterClass: TotalPower: 0.00

17:35:58.109 Disconnected from MQTT.

17:35:58.168 Disconnect reason:TCP_DISCONNECTED

Clone this wiki locally