Get all Smart Meter values of Tasmota into Domoticz
Moderator: leecollings
-
- Posts: 97
- Joined: Saturday 14 March 2020 13:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Get all Smart Meter values of Tasmota into Domoticz
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 (188.34 KiB) Viewed 1688 times
-
- Screenshot_20230924-121223.png (169.8 KiB) Viewed 1688 times
-
- Screenshot_20230924-121704~2.png (174.54 KiB) Viewed 1688 times
- waltervl
- Posts: 5148
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Re: Get all Smart Meter values of Tasmota into Domoticz
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
Über idx6 und idx7 kommen auch noch Daten raus aus dem tasmoto...
vg. nitana
-
- Posts: 97
- 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
@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.
-
- Posts: 97
- 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
@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
-
- Posts: 97
- 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
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
@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
-
- Posts: 97
- 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
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 (177.27 KiB) Viewed 1540 times
-
- Screenshot_20231007-142329~2.png (145.62 KiB) Viewed 1540 times
-
- Screenshot_20231007-142459~3.png (183.74 KiB) Viewed 1540 times
- waltervl
- Posts: 5148
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 58
- 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
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.
-
- Posts: 97
- 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
OK, thanks. Will try MQTTMapper next time
- waltervl
- Posts: 5148
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 58
- 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
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.
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.
-
- Posts: 97
- Joined: Saturday 14 March 2020 13:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest