Comments (4)
Hi , you are right, i have implemented in example only this characteristic "Carbon Dioxide Level" which is measured by ppm
You mentioned about VOC (ug/mm3). I will think how to combine. Or you can do by yourself by adding those characteristic in
homeintegration.c
I will apprecciate a pull request
from esphap.
I wonder how to best solve it, because in the case of air pollution measurements, we measure various parameters (CO2, PM2.5, PM10, VOC etc.). Each of them has its own standards of acceptable values(not to mention the fact that are different acceptable values provided by WHO, US, EU and China).
Additionally, not every device performs all of these measurements. For example, I have two of my projects, one measures all of the 4 parameters mentioned above, and the other measures only PM2.5 and PM10.
from esphap.
In my understanding,
You should get EspHap_AirQuality_MQ135 as example and depending on capabilities you should add additional Characheristic (or replace Carbon Dioxide Level) , which are supported by Apple
For instance
CHARACTERISTIC_PM25_DENSITY
CHARACTERISTIC_PM10_DENSITY
CHARACTERISTIC_VOC_DENSITY
From library points of view it's very easy, see impementation of
hap_new_air_quality_service ( homeintegration.c )
You can add or replace additional characheristic.
Then behaviour in the code the same as in the given example EspHap_AirQuality_MQ135
from esphap.
Shure we can add additional function to homeintegration.c with parameters, which characheristic will be supported
On the main sketch behaviour very simple,
For instance following can be used
homekit_service_characteristic_by_type(airqualitylevelservice, HOMEKIT_CHARACTERISTIC_CARBON_DIOXIDE_LEVEL);
If it returns NULL, characheristic is not supported
from esphap.
Related Issues (20)
- Naming Issue on Multiple Accessories
- ESP32 stucks on "HomeKit: Configuring mDNS" HOT 2
- Notify not working on ios 16 beta HOT 1
- Multiple LEDs
- Pairing issue HOT 2
- Defining limits (min_value, max_value, min_step, unit, format, etc ...) HOT 4
- Cooler + Heater : How to ? HOT 1
- SLAT do not show up on HomeKit after pairing HOT 1
- Setting initial values for FLOAT type HOT 2
- NAME characteristics showing on IOS just at time of pairing and then ESP name HOT 2
- error unknown type name 'curve25519_key'
- Quick question - not an issue
- Compilation failed for ESP32C3
- Compilation Error HOT 1
- Regarding the issue with iPhone version 16.5。
- Compilation error in ESPHap_Button HOT 2
- All devices "No response" under iOS 16.6 HOT 2
- Pair Setup Step 3/3 : InstructionFetchError OR LoadProhibited when having >24 characteristics loaded HOT 3
- 8 accessories initialized force the 1st one to be considered as a Hub/HomeBridge HOT 13
- What is related to "context" in accessory/service definition ?
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 esphap.