Get all Smart Meter values of Tasmota into Domoticz

Moderator: leecollings

Post Reply
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Get all Smart Meter values of Tasmota into Domoticz

Post 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.
Attachments
Screenshot_20230924-121313.png
Screenshot_20230924-121313.png (188.34 KiB) Viewed 3768 times
Screenshot_20230924-121223.png
Screenshot_20230924-121223.png (169.8 KiB) Viewed 3768 times
Screenshot_20230924-121704~2.png
Screenshot_20230924-121704~2.png (174.54 KiB) Viewed 3768 times
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post by waltervl »

I think you have to use the P1 smartmeter device. I am not sure what the Tasmota can/will publish exactly.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
nitana
Posts: 1
Joined: Sunday 24 September 2023 16:27
Target OS: OS X
Domoticz version:
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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.
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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.
Attachments
Screenshot_20231009-103259.png
Screenshot_20231009-103259.png (177.27 KiB) Viewed 3620 times
Screenshot_20231007-142329~2.png
Screenshot_20231007-142329~2.png (145.62 KiB) Viewed 3620 times
Screenshot_20231007-142459~3.png
Screenshot_20231007-142459~3.png (183.74 KiB) Viewed 3620 times
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
thaui
Posts: 59
Joined: Sunday 15 March 2015 19:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Hamburg
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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.
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post by imautohuttraeger »

OK, thanks. Will try MQTTMapper next time
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
thaui
Posts: 59
Joined: Sunday 15 March 2015 19:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Hamburg
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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.
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post by imautohuttraeger »

👍👍👍👍👍👍👍👍👍👍
csuti
Posts: 8
Joined: Thursday 26 March 2020 22:53
Target OS: Linux
Domoticz version: 2024.2
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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 1428 times
https://github.com/csutihu/Domoticz-plu ... mart-Meter
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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?
csuti
Posts: 8
Joined: Thursday 26 March 2020 22:53
Target OS: Linux
Domoticz version: 2024.2
Contact:

Re: Get all Smart Meter values of Tasmota into Domoticz

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests