I have an infrared reading head on my electric meter ("Hichi" with Tasmota). Transfering the data via MQTT to Domotics works for actual power and export counter. But for the import counter I get these errors in Domoticz:
Error: Invalid Number sValue: '%' for device idx: '%'
Error: GetJSonDevices: exception occurred : 'stoull'
I am non-tech-guy but at least I have learned that the MQTT transfer of the Tasmota device sends incorrect data and causes inconsistent Data in the Database.
The console in the Tasmota device shows no errors. This is the code of the customized script that runs in the Tasmota device and it displays correct data in the Tasmota web interface.
>D
>B
=>sensor53 r
>M 1
+1,3,s,0,9600,,1
1,77070100010800FF@100000000,Zählerstand Import ,kWh,1_8_0,8
1,77070100010801FF@1000,Zählerstand Import T1 ,kWh,1_8_1,8
;1,77070100010802FF@100000000,Energie Bezug T2,kWh,1_8_2,8
1,77070100020800FF@100000000,Zählerstand Export,kWh,2_8_0,8
1,77070100100700FF@1,Summe Verbrauch 🔌,W,16_7_0,16
1,77070100240700FF@1,akt. Verbrauch L1,W,36_7_0,16
1,77070100380700FF@1,akt. Verbrauch L2,W,56_7_0,16
1,770701004C0700FF@1,akt. Verbrauch L3,W,76_7_0,16
#
Even the non-customized Script for my electric meter from the Tasmota wiki shows the same behaviour:
Does anyone have a hint for me if and how I could adjust something in the Tasmota Device?