lucacri / homebridge-http-temperature-humidity

Apache License 2.0
59 stars 36 forks source link

Request - Dust / Air Quality #18

Open neonightmare opened 7 years ago

neonightmare commented 7 years ago

Hi, big THX for this great piece of code, it works like a charm!

Ist it possible to integrate also this sensors in the lua/mcu and then in the homebridge (works this with AppleHomekit?)?

1) Dust sensor e.g. ppm https://www.sharpsde.com/products/optoelectronic-components/model/GP2Y1012AU0F/

2) Air Quality eg. CO2 concentrtion

https://www.google.ch/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjwy7O17p3PAhUDCBoKHcFbD-sQFgghMAA&url=https%3A%2F%2Fwww.olimex.com%2FProducts%2FComponents%2FSensors%2FSNS-MQ135%2Fresources%2FSNS-MQ135.pdf&usg=AFQjCNF2zcpNVxoAFgjLjcQWbAep7cpm4Q

Big THX neo

h8pewou commented 7 years ago

Hello,

I would like to second this request. I'm using the plugin with the Broadlink A1 that returns the following (example) response via RM plugin:

{ temperature: 23.5,
  light: 1,
  status: 'ok',
  noisy: 0,
  timestamp: '1477208491030',
  humidity: 47.4,
  deviceMac: '<mac address>',
  air: 0,
  uri: '/a1_status' }

Light, noisy, and air represents luminance, loudness, and air quality sensors respectively. Their values are integers from 0 to 3:

How hard would it be to add these sensors to homebridge? I'm happy to contribute to the coding part as well, I will just need some help to get started. :)

Thanks, Adam

cubilon commented 6 years ago

+1

lucacri commented 6 years ago

Hi everyone, I will merge any PR about this! Does anyone want/can make the necessary changes?

On Apr 4, 2018, 5:33 AM -0400, cubilon notifications@github.com, wrote:

+1 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.