user reading to remove unit of measurement

Begonnen von kroonen, 22 Dezember 2017, 21:45:54

Vorheriges Thema - Nächstes Thema



I'm using the SmartmeterP1 and this gives a reading

ElectricityPowerDelivered    0.34 kW

I want to use the value for other stuff and publish it to mqtt topic, but the value is than 0.34 kW

So what I want is to remove te kW . I think this is possible with userreadings? Anybody knows how to do it?

thnx Richard


Hi Richard,

yes userReadings using split oder ReadingsNum...
...or just send not the Value using ReadingsVal use ReadingsNum instead...

Bye, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)