Page 1 of 1

Get all Smart Meter values of Tasmota into Domoticz

Posted: Sunday 24 September 2023 12:30
by imautohuttraeger
Using the “Hichi IR reading head” I can see some of the values ​​of my electricity meter displayed on the Tasmota interface. I can also get one value of this transferred to Domoticz by entering the idx of the device in Domoticz with the sensor idx4 from Tasmota. But how can I get the other values ​​in Domoticz? I tried the available sensors idx 1 to 11, but nothing works.

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Sunday 24 September 2023 14:50
by waltervl
I think you have to use the P1 smartmeter device. I am not sure what the Tasmota can/will publish exactly.

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Sunday 24 September 2023 16:31
by nitana
Hallo imautohuttraeger, soweit bin ich auch schon gekommen, es scheint noch zu wenige User zu geben die damit Ihre Daten auslesen.
Über idx6 und idx7 kommen auch noch Daten raus aus dem tasmoto...
vg. nitana

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Sunday 24 September 2023 16:57
by imautohuttraeger
@waltwrvl Thanks for quick reply. Maybe I have tested P1 not long enough as I now think I have to wait until the kWh must change before data are transfered. I will give it a trial when I will be back home tonight.

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Sunday 24 September 2023 17:02
by imautohuttraeger
@nitana Das freut mich, dass noch jemand gerade damit Erfahrungen macht. Ich habe noch nicht die PIN zum "morsen" vom Netzbetreibers erhalten, daher werden wohl noch nicht alle Daten übermittelt - insbesondere die aktuelle Leistung der einzelnen Phasen und ihre Summe, so dass bei idx6 und idx7 derzeit noch nichts ankommt. Ich warte auf den Brief, morse dann los und schaue mal und werde das hier posten

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Sunday 24 September 2023 17:16
by imautohuttraeger
Just paste the Google Translate translation from the last two German postings, so that everyone instantly can follow it as this is an English forum of course:

@nitana said:
Hello imautohuttraeger, I've already gotten this far, there still seem to be too few users who use it to read out their data.
Data also comes out of the tasmoto via idx6 and idx7...

@imautohuttraeger said:
@nitana I'm glad that someone else is having experience with this. I haven't received the PIN for "morse code" from the network operator yet, so probably not all of the data is being transmitted yet - in particular the current power of the individual phases and their sum, so nothing is being received by idx6 and idx7 at the moment. I'll wait for the letter, then go and have a look and post it here

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Tuesday 10 October 2023 11:28
by imautohuttraeger
I have now received and entered the PIN for my electricity meter. Now the current power consumption is also displayed - next to the two meter readings. To get these values ​​in Domoticz you have to enter the corresponding devices for idx4, idx7 and idx8. The other sensors do not transmit any data, I tested that.

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Tuesday 10 October 2023 13:18
by waltervl
You could try to use the Tasmota MQTT HomeAssistant Autodiscover function to get all the tasmota devices discovered and maintained by Domoticz. But it seems Tasmota is not supporting this MQTT Autodiscover function anymore in the latest firmware.

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Friday 04 October 2024 19:31
by thaui
The Tasmota device is sending the Data and i can read them with the Mqtt Explorer. With MqttMapper i can transfer the data to Domoticz.

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Friday 04 October 2024 21:18
by imautohuttraeger
OK, thanks. Will try MQTTMapper next time

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Friday 04 October 2024 23:55
by waltervl
thaui wrote: Friday 04 October 2024 19:31 The Tasmota device is sending the Data and i can read them with the Mqtt Explorer. With MqttMapper i can transfer the data to Domoticz.
Perhaps it would be nice to post your mqttmapper config json file for these devices. It will save TS some work to setup.

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Saturday 05 October 2024 9:31
by thaui
okay. I am operating the Hiki Tasmota device in combination with the openDTU for my Hoymiles device. To get the data from Hiki is one thing to have the data in the energy dashboard another. But this is a seperate issue. In the Hiki device I have only enabled the MQTT parameters nothing else.
Then you get the topics and can see them in the Mqtt Explorer like this:

{"sn":{"Time":"2024-10-04T16:46:31","SML":{"server_id":"0a01484c590200155d58","export_total_kwh":98.7186,"total_kwh":1958.8090,"curr_w":218,"volt_p1":236.3,"volt_p2":236.9,"volt_p3":234.8,"amp_p1":0.5,"amp_p2":0.9,"amp_p3":0.5,"phase_angle_l2_l1":119.0,"phase_angle_l3_l1":239.0,"phase_angle_p1":295.0,"phase_angle_p2":57.0,"phase_angle_p3":302.0,"freq":50}},"ver":1}

now you have to edit the mqttMapper.json file after you have installed the mqttMapper plugin. In my case it looks like this:

"Strom current W":{
"topic": "tele/Hichi_F42ED0/SENSOR",
"key": "tele/Hichi_F42ED0/SENSOR/SML/curr_w",
"type": "248", "subtype":"1",
"mapping":{"item":"SML/curr_w"}
},
"Strom Import kWh":{
"topic": "tele/Hichi_F42ED0/SENSOR",
"key": "tele/Hichi_F42ED0/SENSOR/SML/total_kwh",
"type": "113", "subtype":"0",
"mapping":{"item":"SML/total_kwh"}
},
"Strom Export kWh":{
"topic": "tele/Hichi_F42ED0/SENSOR",
"key": "tele/Hichi_F42ED0/SENSOR/SML/export_total_kwh",
"type": "113", "subtype":"0",
"mapping":{"item":"SML/export_total_kwh"}
}
after restarting Domoticz you have 3 additional devices generated by MqttMapper

Afterwards you need to add the data to the dummyP1 device in domoticz. This is challanging and I have not found a proper way to see reasonable values.

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Saturday 05 October 2024 9:54
by imautohuttraeger
👍👍👍👍👍👍👍👍👍👍

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Thursday 13 February 2025 22:39
by csuti
Hi everyone!

After installing the electricity smart meter, I started integrating my Sanxing SX631 (S34U18) P1 Smartmeter. I tried several solutions, unfortunately with partial success. Some solutions didn't provide all the necessary data or didn't correctly match the OBIS codes. Others, in my opinion, communicated too frequently, and there were a few that I couldn't get to work at all. Finally, I decided to create my own integration. The solution is based on a newer Wemos D1 mini with Tasmota firmware and a custom Tasmota script, as well as a Domoticz plugin.
The output of the script running on Tasmota is published via Tasmota's MQTT, which is read by a Domoticz plugin that creates and updates the sensors.

I thought I would share it here with you, as it may be useful to someone.
domoticz_tasmota_p1smart.png
domoticz_tasmota_p1smart.png (108.2 KiB) Viewed 5034 times
https://github.com/csutihu/Domoticz-plu ... mart-Meter

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Friday 14 February 2025 9:11
by imautohuttraeger
Great stuff. As you can see the voltage of each phase: Is it possible to also see the power of each phase rather than the cumulated figure?

Re: Get all Smart Meter values of Tasmota into Domoticz

Posted: Friday 14 February 2025 10:21
by csuti
imautohuttraeger wrote: Friday 14 February 2025 9:11 Great stuff. As you can see the voltage of each phase: Is it possible to also see the power of each phase rather than the cumulated figure?
The availability of data depends on the data provided by the smart meter.
Unfortunately, the meter I use (sx631/s34u18) is not able to publish such data. For example, the description includes L1, L2, L3 current intensity, but in reality it does not publish such data.
The Tasmota script is very easy to extend and you can immediately see on the web interface whether the value of the new data is displayed or not. If the new obis code publishes data, then the Domoticz plugin.py needs to be extended according to the description.
The Tasmota script needs to be extended in this part:
1,1-0:32.7.0(@1,L1 Voltage,V,volts_l1,1
1,1-0:52.7.0(@1,L2 Voltage,V,volts_l2,1
1,1-0:72.7.0(@1,L3 Voltage,V,volts_l3,1
1,1-0:1.7.0(@1,Power import,kW,pwr_imp,3
1,1-0:2.7.0(@1,Power export,kW,pwr_exp,3
1,1-0:13.7.0(@1,Power factor,,factor,3
1,1-0:14.7.0(@1,Frequency,Hz,freq,2
1,0-0:96.14.0(@1,Current tariff,,tariff,0
1,=h<hr/>
1,1-0:1.8.0(@1,Energy import,kWh,enrg_imp,3
1,1-0:2.8.0(@1,Energy export,kWh,enrg_exp,3
1,1-0:1.8.1(@1,Energy import T1,kWh,enrg_imp_t1,3
1,1-0:1.8.2(@1,Energy import T2,kWh,enrg_imp_t2,3
1,1-0:2.8.1(@1,Energy export T1,kWh,enrg_exp_t1,3
1,1-0:2.8.2(@1,Energy export T2,kWh,enrg_exp_t2,3

In the future, I will review what other data would be worth reading out from the meter.