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:
5 out of 5
Suggested Topics
-
Data logging Options
Vera • 1 Apr 2014, 00:16 • NotYetRated 22 May 2014, 19:30 -
Code that was send by mysensor devices
FHEM • 13 Sept 2016, 04:06 • A Former User 13 Sept 2016, 08:58 -
Not getting Node ID assigned
FHEM • 11 Feb 2016, 10:57 • bigal 19 Feb 2016, 22:19 -
Solar Battery Monitor - How to transfer values to Fhem
FHEM • 20 Sept 2019, 22:45 • btmerz 20 Sept 2019, 23:16 -
SmartSleep and FHEM - does it work?
FHEM • 10 Jan 2017, 09:46 • cablesky 25 Mar 2019, 15:46 -
Inlcusionmode crashes FHEM
FHEM • 20 Nov 2017, 07:54 • Komaandy 20 Nov 2017, 09:32