-
Notifications
You must be signed in to change notification settings - Fork 66
Power Meter
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
Shelly 3EM: Working configuration:
Discussion: #331
- Shelly PRO 3EM #364
- Tasmota #360 #339 #191 #412
- powerfox #165
- simple JSON Array #191
- Volkszähler #359
- FHEM #335
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
- 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.
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 its log for a while. For example:
None of these Topics (List from MQTT Server) will work:
The first three Topics below will work:
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
- Home
- FAQ
- First-Time Installation
- Device Profiles (Pin Config)
- Upgrade from OpenDTU
- Getting Help
- Hilfe erhalten
- Builds & Examples
- ESP32 Versions and Memory
- Victron MPPT solar charger
- VE.Direct
- Victron Smartshunt
- Victron Smart Battery Sense
- Warning on Victron MPPT 100/20
- Pylontech battery
- Pytes battery
- Huawei AC PSU
- SBS Unipower Battery
- Jikong JK BMS
- HOYMILES
- Einschaltstrombegrenzung für Balkonkraftwerke - Inrush current limiter
- Live View
- Farbe des Wechselrichterfensters
- Power Meter
- Dynamic Power Limiter
- Dynamic Power Limiter ‐ (Full) Solar‐Passthrough
- Dynamic Power Limiter Limitations
- DC Voltage ‐ Load correction factor
- Battery
- Battery-Tipps
- 24V Battery issues with Hoymiles
- Home Assistant
- Grafana Dashboard
- XXL Balkonkraftwerk 1500 Watt und mehr! Worauf Ihr achten solltet!
- Wie gefährlich kann ein Balkonkraftwerk werden (FI‐Schutzschalter)
- Hardware Purchase Tipp
- Fan speed controller ‐ add temperature sensing to any fan
- Cable length(s) between battery and inverter
- Kabellänge(n) zwischen Batterie und Wechselrichter
- Diodes ‐ Bypass vs. Blocking Diodes
- Impact of high start-currents to the inverter
- Making Cables for your HOYMILES‐CAUTION