Hello,
at the moment i get some values of an ESP8266 D1 Mini with one decimal (e.g. 21.1, 23.4, ...). But when the decimal is "0" the value is transmitted via mqtt without a decimal (0).
Is there a way to this with ESPEasy or must i script this with JS oder Blockly in IOBroker?
Thanks for your help!
ESPEasy Values Decimals
Moderators: grovkillen, Stuntteam, TD-er
Re: ESPEasy Values Decimals
Isn't that for the 'other end' to determine how to present the data? MQTT is a transport mechanism for data, not for presentation, so it shouldn't matter if ESPEasy sends it with or without decimals.
/Ton (PayPal.me)
Re: ESPEasy Values Decimals
Ok. That makes sense!
I will solve this issue in iobroker.
Thanks a lot.
I will solve this issue in iobroker.
Thanks a lot.
Re: ESPEasy Values Decimals
What data source is used in ESPEasy?
Is it somewhere where formatting can be used, like this: https://espeasy.readthedocs.io/en/lates ... red-values ?
If the data is sent by a task, then it should obey the formatting set in that task (nr. of decimals)
Is it somewhere where formatting can be used, like this: https://espeasy.readthedocs.io/en/lates ... red-values ?
If the data is sent by a task, then it should obey the formatting set in that task (nr. of decimals)
Who is online
Users browsing this forum: No registered users and 1 guest