Copying Reading value into 'state' field
-
I have my mysensors connected to FHEM and everything works fine so far - just the 'state' flag of my sensors is not getting populated and always shows questionsmarks. How can i change that? I would prefer to always see the latest value from this sensor here - can it be done via a mapping?
-
Hello,
This can be done with the stateFormat attribute
This is how I implemented it for my sensors
stateFormat = temperature1 °C / humidity2 % / batterylevel %
-
-
@Stephan-Noller
I set the stateFormat attribute to something like{sprintf("T:%.1f H:%.0f P:%.0f B:%.0f",ReadingsVal("MYSENSOR_105","temperature1",0), ReadingsVal("MYSENSOR_105","humidity",0), ReadingsVal("MYSENSOR_105","pressure2",0), ReadingsVal("MYSENSOR_105","batterylevel",0))}
-
Here's a good source of info for non German speakers: