FHEM Forum

FHEM => English Corner => Thema gestartet von: franc am 23 Mai 2015, 11:29:42

Titel: change the state value
Beitrag von: franc am 23 Mai 2015, 11:29:42

Hi,

I am working on changing the hardware that submits temperature and and humidity readings, unfortunately these don't support floating point numbers and the value are multiplied by 10. The old system did something things like

   set Temperature 22.3

the new hardware does

   set Temperature 223

Is it possible to write a rule so that fhem sets that state to 22.3 instead of 223 ?

thanks

Titel: Antw:change the state value
Beitrag von: Benni am 23 Mai 2015, 12:30:46
Hi franc,

there are two possibilities to do something like that:


for a detailed description on both attributes search in the fhem commandref.

regards
Benni.
Titel: Antw:change the state value
Beitrag von: franc am 24 Mai 2015, 07:40:04

Neither of those do quite what I want/need, thanks anyway

I've managed to hack the new system so that it now sends the correct values