FHEM Forum

FHEM => English Corner => Thema gestartet von: kroonen am 22 Dezember 2017, 21:45:54

Titel: user reading to remove unit of measurement
Beitrag von: kroonen am 22 Dezember 2017, 21:45:54
Hi,

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
Titel: Antw:user reading to remove unit of measurement
Beitrag von: MadMax-FHEM am 22 Dezember 2017, 21:56:20
Hi Richard,

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

Bye, Joachim