Skip to content

Commit

Permalink
Fixed number of decimal points on MQTT payload
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Oct 28, 2023
1 parent 4634050 commit a6d8857
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/HomeAssistantMqttHandler/json/ha2.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"tPI" : %.2f,
"tPO" : %.2f,
"tQI" : %.2f,
"tQO" : %.2f,
"tPI" : %.3f,
"tPO" : %.3f,
"tQI" : %.3f,
"tQO" : %.3f,
"rtc" : %lu
}
8 changes: 4 additions & 4 deletions lib/JsonMqttHandler/json/json4.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"PF1" : %.2f,
"PF2" : %.2f,
"PF3" : %.2f,
"tPI" : %.2f,
"tPO" : %.2f,
"tQI" : %.2f,
"tQO" : %.2f,
"tPI" : %.3f,
"tPO" : %.3f,
"tQI" : %.3f,
"tQO" : %.3f,
"rtc" : %lu
},
"realtime" : {
Expand Down

0 comments on commit a6d8857

Please sign in to comment.