Coder Social home page Coder Social logo

Comments (6)

swttt avatar swttt commented on August 14, 2024

Only certain charasteristics can be bound to certain services. For example the motion sensor and temperature measurement need to be two differenct services. (and show up as two different devices)

For that reason most sensors are split into different components e.g. motion sensor, contact sensor etc. with the added capabilities those sensors could have. Sure.. i'll miss some. But at that time it seamed the most obv way.

Any reason why it would be easier to implement it as one device type / component?

from com.swttt.homekit.

RobinBol avatar RobinBol commented on August 14, 2024

Ah, well like I said, I am not sure how HomeKit handles sensor devices with varying capabilities, but the problem I am currently experiencing is that devices of class sensor with only the capabilities measure_temperature, measure_pressure and measure_humidity do not show up as devices in HomeKit.

from com.swttt.homekit.

swttt avatar swttt commented on August 14, 2024

It actually should add as 2 different devices. One temperature and one humidity.
Creating it as one "device type" still kinda needs the same checks as it does now in the app.js .

Will think it through tho, there might be a better solution indeed.

from com.swttt.homekit.

swttt avatar swttt commented on August 14, 2024

Gave it some thought, but maybe you could give your opinion on this as well:

  • Every item in /lib/devices should be an exact match to a Homey class
  • Within this class there are predefined capabilities that should be looped/checked vs the device
  • On the other class all possible capabilities should be looped

Anything i didn't consider or forget?

from com.swttt.homekit.

RobinBol avatar RobinBol commented on August 14, 2024

Hm well, I think (if possible) it is better to look at individual capabilities instead of device class only, since in Homey a device with device class socket can also have the measure_temperature capability for example. However, I guess this will be more complicated/not possible with the way homekit is constructed (but that is something you know more about than me).

from com.swttt.homekit.

swttt avatar swttt commented on August 14, 2024

At least all sensors are into one file, and should support all of them (each capability should be added).
Thanks to @nhassink tho.

I'll close this one, since i don't think there is any other way to improve this at the moment.

from com.swttt.homekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.