Comments (6)
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.
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.
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.
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.
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.
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)
- No devices responding with iOS 16.2 HOT 17
- No response after 4.2.0 HOT 10
- Possible issue with future iOS 16.2 Home architecture upgrade HOT 1
- Question: Homey Pro 2023 HOT 1
- Inconsistent Pairing code HOT 3
- No device response iOS16.1 HOT 4
- Devices are missing in the Apple Home app after Homey restart (PTP) HOT 4
- Fibaro Door Sensor HOT 5
- Homeykit compatible with new Apple HomeKit architecture? HOT 1
- Same issue homekit stopped working HOT 7
- Stopped working HOT 1
- Daikin Onecta - Homey - Siri HOT 1
- Crashing
- Homey Pro Can not add Homekitty to Homekit
- Homey pro 2023 HOT 3
- Unable to change color on WIZ bulbs HOT 1
- Accessoires unreachable HOT 4
- Homey integration with HomeKit new Architecture HOT 4
- Apple & Homey PRO HOT 1
- Add Velux active with Netamo Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from com.swttt.homekit.