Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Add Humidity sensors #12

Closed
tjandt opened this issue Dec 15, 2015 · 11 comments
Closed

Add Humidity sensors #12

tjandt opened this issue Dec 15, 2015 · 11 comments

Comments

@tjandt
Copy link

tjandt commented Dec 15, 2015

I have some humidity sensors attached to my pimatic. How could these be exposed to homekit?

@michbeck100
Copy link
Owner

What plugin are you using to connect the sensors? I would have a look if its possible to add support.

@tjandt
Copy link
Author

tjandt commented Dec 15, 2015

I'm using pimatic-dht-sensors ... Temperature is working fine only Humidity is missing at the moment. If I could help you feel free to get in touch.

@michbeck100
Copy link
Owner

pimatic-dht-sensors is misusing the TemperatureSensor class. A TemperatureSensor from pimatic doesn't support humidity, only temperature. Since pimatic-hap currently just supports the features of the base class, measuring humidity would require a rewrite of the dht sensors plugin.

@tjandt
Copy link
Author

tjandt commented Dec 15, 2015

So I should get in contact with the developer of https://github.com/pimatic/pimatic-dht-sensors ?

@michbeck100
Copy link
Owner

You could also create a fork of the plugin and make the changes by yourself. Then submit a pull request. Maybe I'll find the time to make the changes, but i don't have any device to test.

@tjandt
Copy link
Author

tjandt commented Dec 15, 2015

Which class should be used? Or should I create a new HumiditySensor class? Just to understand which information is needed that you plugin can expose this humidity information via HomeKit

@michbeck100
Copy link
Owner

HomeKit itself does differentiate between temperature sensor and humidity sensor. One solution would be to create a new device class, the other way would be, to change the way pimatic-hap recognizes device capabilities. I have to think about this, but it's probably easier to go for the second way, since there are more plugins out there that use the same way to measure humidity

@tjandt
Copy link
Author

tjandt commented Dec 15, 2015

okay so if I should test something or if you need something we can use my setup.
I'll try to support you as good as possible ;)

@rspaargaren
Copy link

I can do the same, I was already exloring your code and the related hap-nodeJS code. As I have more devices also a PIR device. But I have to learn more on the basics of java, koffie, promise etc....

@michbeck100
Copy link
Owner

Should be working with the next release ;-)

@tjandt
Copy link
Author

tjandt commented Dec 23, 2015

cool ... I'll give it a try after christmas ;) thanks for your work

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

No branches or pull requests

3 participants