stjohnjohnson / smartthings-mqtt-bridge

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

Can support be added for Netamo connect sensor data C02, noise level and pressure? #68

Open rapport opened 7 years ago

rapport commented 7 years ago

I have added a Netamo weather station to smartthings and am only getting temperature data from it on my MQTT server over via this bridge. I really want to get the carbonDioxide (stuffiness), the noise and room pressure. Can anyone help? I would be happy do some work to help add these things if you point me in the right directed e.g. the Current States for smartthings shows data like this...

temperature: 23.3 C
humidity: 33
carbonDioxide: 695
noise: 53
pressure: 1013.4

PS Many thanks for sharing this bridge on github!

rapport commented 7 years ago

FYI: Smartthings list events shows the following for these sensors

Date Source Type Name Value User Displayed Text 2017-01-22 11:49:17.335 PM GMT 12 minutes ago DEVICE noise 52 room1 noise is 52 2017-01-22 11:49:17.322 PM GMT 12 minutes ago DEVICE pressure 1013.5 room1 pressure is 1013.5 2017-01-22 11:49:17.300 PM GMT 12 minutes ago DEVICE carbonDioxide 635 room1 carbon dioxide is 635

stjohnjohnson commented 7 years ago

Hey @rapport,

It should mostly work as long as you select that device under:

But we don't have anything that tracks pressure or noise. The way the system works is by looking for capabilities and then listening for attributes of them. Here's an example: https://github.com/stjohnjohnson/smartthings-mqtt-bridge/blob/master/smartapps/stj/mqtt-bridge.src/mqtt-bridge.groovy#L210-L216

If you can figure out what tweaks you need to identify your device type based on it's capabilities and read that data, then I'm always interested in PRs.

rapport commented 7 years ago

Thanks for these pointers. I will look into this and try to figure it out how to change the code and do a PR. I need to use the sound and will do my best to make it work or figure out a workaround. For the sound I think I may also be able to switch to this new sound sensor soon http://aeotec.com/z-wave-glass-break-sound-sensor ( I am guessing this may work out the box soon!). I am using the pressure level to try to check if objects are upstairs, downstairs, on the floor, on a shelf etc. and I am not 100% sure if this is will work anyway!