Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Bruh Multisensor unable to set PIR value and status in Openhab #57

Open
msgowdara opened this issue Jun 1, 2018 · 1 comment
Open

Comments

@msgowdara
Copy link

I am beginner. I am using Openhab2. I can eaxtract Temp, Humidity and LDR, but unable to extract PIR motion status to Openhab2 Basic UI.

My item is as below
String LivingRoom_Motion "Motion Sensor [JSONPATH($.motion):%.1f]" (LivingRoom, gMotion) { mqtt="<[mqttbroker:home/livingroom:state:JSONPATH($.motion)]" }

I am getting "Err" value beside motion in Basic UI.

What should be the item type (I tried Switch, Number and Contact but no success).

Kindly help me in item creation to fetch value.

I am getting following JSON value from sensor

home/livingroom {"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"59.60","motion":"standby","ldr":"9","temperature":"31.70","heatIndex":"27.37"}

Kindly help.

@kberck
Copy link

kberck commented Jun 21, 2018

String MotionSense "Motion [%s]"
{ mqtt="<[mqttbroker:home/livingroom:state:JSONPATH($.motion)]" }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants