bruhautomation / ESP-MQTT-JSON-Multisensor

(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
https://youtu.be/jpjfVc-9IrQ
Apache License 2.0
340 stars 152 forks source link

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

Open msgowdara opened 6 years ago

msgowdara commented 6 years ago

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 commented 6 years ago

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