stjohnjohnson / smartthings-mqtt-bridge

Bridge between SmartThings and MQTT
https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/
MIT License
363 stars 242 forks source link

Atmospheric pressure sensor #155

Open b1rp opened 6 years ago

b1rp commented 6 years ago

I have some of the xiaomi aqara sensors with temp, humidity, and atmospheric pressure. Is there any way to get pressure to work with the bridge?

gandazgul commented 5 years ago

There's currently no capability for atmospheric pressure in https://docs.smartthings.com/en/latest/capabilities-reference.html the bridge currently only supports available capabilities.

There might be a way to support custom ones.

nayneyT commented 5 years ago

Hi,

Add the pressureSensor part to the smartapp mqtt-bridge.groovy code to add pressure sensor. I use it for my Aqara sensors.

"pHMeasurement": [
    name: "pH Measurement",
    capability: "capability.pHMeasurement",
    attributes: [
        "pH"
    ]
],
"pressureSensor": [
    name: "Pressure Sensor",
    capability: "capability.sensor",
    attributes: [
        "pressure"
    ]
],
"powerMeters": [
    name: "Power Meter",
    capability: "capability.powerMeter",
    attributes: [
        "power"
    ]
]

If this can be added by stjohnjohnson that would be awesome.

p.s. Thanks for all your efforts. I am gutted that you have sidelined the project :-(