Data type , Data unit , decade/exponent
-
Hello !
If I receive a MySensors telegram - how can I know the correct data unit (i.e. °C or F) and exponent (mV / V or cm/meter/km)?
i.e I get :
1)
presentation sub-type: S_POWER
set sub-type: V_VOLTAGE
payload:4482
-> OK, its Volt - but where I get the mili [mV] info?The S_POWER and the V_VOLTAGE are IMO redundant info !?
Aside from S_ARDUINO_NODE and S_ARDUINO_RELAY all other types exists double.presentation sub-type: S_TEMP
set sub-type: V_TEMP
payload:4482
-> Where can I get the info for the unit (°C or F) from the GW/Controler sight?Best thx, Pit !
-
Right now the controller is responsible to for this configuration. Nodes request the format at startup. They then send in data in the preferred unit.
This will probably change in the future (2.0) and all sensors sends their data in a pre-set SI unit and controller takes care of conversion if necessary.
-
@hek Hi, this sounds well. Waiting for 2.0! Is there a timeline ?
On the controller side is enough power to make all conversations. Also, if a node send a non-si value. Normally needed is the type, the value, the unit and the possibility to readonly / readwrite (i.e. dimm level).
-
-
This post is deleted!
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Adding Listen only device to my system.
Development • 30 days ago • dpcons 29 days ago