aalmazanarbs / hassio_aldes

7 stars 5 forks source link

Additional sensors provided by the integration #14

Open Fredzxda opened 1 year ago

Fredzxda commented 1 year ago

Hello I manage to develop function for Aldes product sensors values providing. Aldes API return json structure which is more or less the same for each product, I assume. I need some help to validate this assumption and to identify the which information values refer to.

If someone one to contribute, please use this two commands and attach the result. Be sure to delete personal information before (mac address, GPS coordinate...).

curl --location 'https://aldesiotsuite-aldeswebapi.azurewebsites.net/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=your-user-name' \
--data-urlencode 'password=your-password'
curl --location 'https://aldesiotsuite-aldeswebapi.azurewebsites.net/aldesoc/v5/users/me/products' \
--header 'Authorization: Bearer the-access-token-of-previous-request'

Look at AldesJson.xlsx to see the current state of this work. @aalmazanarbs can you complete my understanding with your current work ?

RiderCrazy commented 1 year ago

@aalmazanarbs Any problem with my comment ?

DKFR67 commented 1 year ago

Hi everybody,

Attached the output file for the device PUREAIR COMPACT PREMIUM (EASY HOME PREMIUM). The structure seem to be the same as for EASY HOME CONNECT

PUREAIR_COMPACT_PREMIUM_DKFR67.xlsx

Hope it can help. I have to check at home with other measurements sensor if co2, humidity and temperature value refleat reality.

DKFR67 commented 1 year ago

Hi,

So I checked for 24 hours.

Extracting data from curl every minutes : {{ { "TmpCu": value_json[0].indicator.TmpCu, "CO2": value_json[0].indicator.CO2, "HrCuCo": value_json[0].indicator.HrCuCo, "HrCu": value_json[0].indicator.HrCu, "Qai_value": value_json[0].indicator.Qai.actualValue, } | to_json
}}

TmpCu is temperature, but differs from my netatmo sensor because air is taked out on ceiling and goes to device under roof. TmpCu CO2 is Co2, and variations are corresponding with my other Co2 sensors. Co2 HrCuCo is Relatice humidity (in %). Mean value correspond with my netatmo sensor but instantaneous value has more variations. HrCuCo Qai is Quality Air Index : (betwean 0 and 100 : 0 is very good and 100 very bad). QAI I dont know what is HrCu.

Hope this can help you.

Fredzxda commented 1 year ago

HrCu is the humidity level of your kitchen

Le ven. 9 juin 2023 à 20:29, DKFR67 @.***> a écrit :

Hi,

So I checked for 24 hours.

Extracting data from curl every minutes : {{ { "TmpCu": value_json[0].indicator.TmpCu, "CO2": value_json[0].indicator.CO2, "HrCuCo": value_json[0].indicator.HrCuCo, "HrCu": value_json[0].indicator.HrCu, "Qai_value": value_json[0].indicator.Qai.actualValue, } | to_json }}

TmpCu is temperature, but differs from my netatmo sensor because air is taked out on ceiling and goes to device under roof. [image: TmpCu] https://user-images.githubusercontent.com/123078627/244774007-c69c97a6-48af-49b1-a2bd-a11b31871a42.png CO2 is Co2, and variations are corresponding with my other Co2 sensors. [image: Co2] https://user-images.githubusercontent.com/123078627/244774043-b85dad17-b160-4c20-8165-f2cae9becf54.png HrCuCo is Relatice humidity (in %). Mean value correspond with my netatmo sensor but instantaneous value has more variations. [image: HrCuCo] https://user-images.githubusercontent.com/123078627/244774156-cd40f6fd-e9f5-458a-9529-b9cace6851e5.png Qai is Quality Air Index : (betwean 0 and 100 : 0 is very good and 100 very bad). [image: QAI] https://user-images.githubusercontent.com/123078627/244774119-b90df304-4722-4cd2-a908-247f6fb70aad.png I dont know what is HrCu.

Hope this can help you.

— Reply to this email directly, view it on GitHub https://github.com/aalmazanarbs/hassio_aldes/issues/14#issuecomment-1584983897, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI6LAXTY3G5TC5XOXB5WWT3XKNTPDANCNFSM6AAAAAAYUP7TGM . You are receiving this because you were mentioned.Message ID: @.***>

DKFR67 commented 1 year ago

Regarding my data (see previous message), HrCuCo seams to be the humidity of the kitchen, it correspond to my Netatmo sensor. HrCu don't correspond to my Netatmo sensors values or trends (nor CO2, Humidity or Température).

buitre-buitaker commented 1 month ago

Here is my ouput from Aldes Inspirair Side, how can be included the info from the machine in the home assistant as sensors?

[{"slaves":[], "masters":[], "indicators":[{"date":"2024-08-09T14:06:54.419Z","type":"MODE","value":"V"}, {"date":"2024-08-09T14:06:54.419Z","type":"QAI_INDEX","value":null}, {"date":"2024-08-09T20:04:12.411Z","type":"CLOUD_CONTROLLED","value":null}, {"date":"2024-08-09T20:04:12.438Z","type":"SELF_CONTROLLED","value":false}],

"indicator":{ "AIR_OUTSIDE_TPT":34.0, "AIR_REJECT_TPT":34.0, "AIR_TII_EST":null, "AIR_EXTF_SPD":3082, "AIR_EXTF_TSN":null, "AIR_VI_SPD":2959, "AIR_VV_TSN":null, "AIR_FF_CPT":66, "AIR_FFE_FLW":100, "AIR_EXTF_FLW":100, "AIR_DEP_IND":0, "AIR_EXT_TPT":31.5, "AIR_CVE_CSN":0, "AIR_VI_CSN":0, "AIR_TTE_CSN":0, "AIR_DTB_IND":0, "AIR_ECHANGE_PWR":0, "AIR_SET_SPD":1, "AIR_EXCH_ENG":null, "AIR_CO2_VMC":{"actualValue":null,"previousValue":null}, "AIR_TEMP_CAPT":null, "AIR_HYGR_CAPT":null, "AIR_CO2_CAPT":null, "AIR_COV1_CAPT":null, "AIR_COV2_CAPT":null, "AIR_PM2_5_CAPT":null, "AIR_PM10_CAPT":null, "AIR_CURRENT_MODE":"V", "AIR_START_MODE":null, "AIR_END_MODE":null, "Qai":{"actualValue":null,"previousValue":null,"polluantDominant":null}, "QaiIndex":{"currentValue":null,"l1":[0.0,25.0],"l2":[25.0,50.0],"l3":[50.0,75.0],"max":[75.0,100.0]}, "Co2":{"currentValue":0.0,"l1":[400.0,800.0],"l2":[800.0,1200.0],"l3":[1200.0,1400.0],"max":[1400.0,2000.0]}, "H2o":{"currentValue":null,"l1":null,"l2":null,"l3":null,"max":null}, "SENSOR0_10_1_NAME":null, "SENSOR0_10_2_NAME":null, "Sensor0101MinMax":[null,null], "Sensor0102MinMax":[null,null], "H2O_VMC":{"actualValue":null,"previousValue":null}, "H2O_EMBEDDED":{"actualValue":null,"previousValue":null}, "SENSOR0_10_1":{"actualValue":null,"previousValue":null}, "SENSOR0_10_2":{"actualValue":null,"previousValue":null}, "CurrentModeOverride":false, "indicatorType":"AIR_Indicator"},

"thermostats":null, "week_planning":[{"command":"00W"},{"command":"01W"},{"command":"02W"},{"command":"03W"},{"command":"04W"},{"command":"05W"},{"command":"06W"},{"command":"10W"},{"command":"11W"},{"command":"12W"},{"command":"13W"},{"command":"14W"},{"command":"15W"},{"command":"16W"},{"command":"20W"},{"command":"21W"},{"command":"22W"},{"command":"23W"},{"command":"24W"},{"command":"25W"},{"command":"26W"},{"command":"30W"},{"command":"31W"},{"command":"32W"},{"command":"33W"},{"command":"34W"},{"command":"35W"},{"command":"36W"},{"command":"40W"},{"command":"41W"},{"command":"42W"},{"command":"43W"},{"command":"44W"},{"command":"45W"},{"command":"46W"},{"command":"50W"},{"command":"51W"},{"command":"52W"},{"command":"53W"},{"command":"54W"},{"command":"55W"},{"command":"56W"},{"command":"60W"},{"command":"61W"},{"command":"62W"},{"command":"63W"},{"command":"64W"},{"command":"65W"},{"command":"66W"},{"command":"70W"},{"command":"71W"},{"command":"72W"},{"command":"73W"},{"command":"74W"},{"command":"75W"},{"command":"76W"},{"command":"80W"},{"command":"81W"},{"command":"82W"},{"command":"83W"},{"command":"84W"},{"command":"85W"},{"command":"86W"},{"command":"90X"},{"command":"91X"},{"command":"92X"},{"command":"93X"},{"command":"94X"},{"command":"95W"},{"command":"96W"},{"command":"A0V"},{"command":"A1V"},{"command":"A2V"},{"command":"A3V"},{"command":"A4V"},{"command":"A5X"},{"command":"A6X"},{"command":"B0V"},{"command":"B1V"},{"command":"B2V"},{"command":"B3V"},{"command":"B4V"},{"command":"B5V"},{"command":"B6V"},{"command":"C0V"},{"command":"C1V"},{"command":"C2V"},{"command":"C3V"},{"command":"C4V"},{"command":"C5V"},{"command":"C6V"},{"command":"D0V"},{"command":"D1V"},{"command":"D2V"},{"command":"D3V"},{"command":"D4V"},{"command":"D5V"},{"command":"D6V"},{"command":"E0V"},{"command":"E1V"},{"command":"E2V"},{"command":"E3V"},{"command":"E4V"},{"command":"E5V"},{"command":"E6V"},{"command":"F0V"},{"command":"F1V"},{"command":"F2V"},{"command":"F3V"},{"command":"F4V"},{"command":"F5V"},{"command":"F6V"},{"command":"G0V"},{"command":"G1V"},{"command":"G2V"},{"command":"G3V"},{"command":"G4V"},{"command":"G5V"},{"command":"G6V"},{"command":"H0V"},{"command":"H1V"},{"command":"H2V"},{"command":"H3V"},{"command":"H4V"},{"command":"H5V"},{"command":"H6V"},{"command":"I0V"},{"command":"I1V"},{"command":"I2V"},{"command":"I3V"},{"command":"I4V"},{"command":"I5V"},{"command":"I6V"},{"command":"J0V"},{"command":"J1V"},{"command":"J2V"},{"command":"J3V"},{"command":"J4V"},{"command":"J5V"},{"command":"J6V"},{"command":"K0X"},{"command":"K1X"},{"command":"K2X"},{"command":"K3X"},{"command":"K4X"},{"command":"K5X"},{"command":"K6X"},{"command":"L0W"},{"command":"L1W"},{"command":"L2W"},{"command":"L3W"},{"command":"L4W"},{"command":"L5W"},{"command":"L6W"},{"command":"M0W"},{"command":"M1W"},{"command":"M2W"},{"command":"M3W"},{"command":"M4W"},{"command":"M5W"},{"command":"M6W"},{"command":"N0W"},{"command":"N1W"},{"command":"N2W"},{"command":"N3W"},{"command":"N4W"},{"command":"N5W"},{"command":"N6W"}], "week_planning2":null, "week_planning3":null, "week_planning4":null, "lastUpdatedDate":"2024-08-09 19:17:31Z", "modem":"XXXXXX", "reference":"INSPIRAIR_HOME_S", "serial_number":"XXXXXX", "type":"AIR", "name":"InspirAIR® Home S", "address":"XXXXX", "postalCode":"XXXXX", "city":"XXXXX", "country":"XXXX", "usureFiltre":0, "dateLastFilterUpdate":"2023-09-07 19:16:15Z", "hasFilter":false, "gpsLatitude":XXXXXX, "gpsLongitude":XXXXX, "outdoorAirQualityAvg":36.179969961072985, "isConnected":true, "needUpdate":{"message":"Your app is outdated please update it using the app store and try again", "storeAndroid":"https://play.google.com/store", "storeApple":"http://appstore.com/aldes"}}]

hexCut commented 4 weeks ago

This is from Aldes Inspirair Home S

[{"slaves":[],"masters":[],"indicators":[{"date":"2024-09-05T20:29:30.406Z","type":"MODE","value":"Z"},{"date":"2024-09-05T20:29:30.406Z","type":"QAI_INDEX","value":null},{"date":"2024-09-06T20:27:17.007Z","type":"CLOUD_CONTROLLED","value":null},{"date":"2024-09-06T20:27:17.034Z","type":"SELF_CONTROLLED","value":false}],"indicator":{"AIR_OUTSIDE_TPT":22.5,"AIR_REJECT_TPT":25.7,"AIR_TII_EST":null,"AIR_EXTF_SPD":1699,"AIR_EXTF_TSN":null,"AIR_VI_SPD":1392,"AIR_VV_TSN":null,"AIR_FF_CPT":52,"AIR_FFE_FLW":90,"AIR_EXTF_FLW":90,"AIR_DEP_IND":15,"AIR_EXT_TPT":26.0,"AIR_CVE_CSN":0,"AIR_VI_CSN":0,"AIR_TTE_CSN":0,"AIR_DTB_IND":0,"AIR_ECHANGE_PWR":0,"AIR_SET_SPD":1,"AIR_EXCH_ENG":null,"AIR_CO2_VMC":{"actualValue":null,"previousValue":null},"AIR_TEMP_CAPT":null,"AIR_HYGR_CAPT":null,"AIR_CO2_CAPT":null,"AIR_COV1_CAPT":null,"AIR_COV2_CAPT":null,"AIR_PM2_5_CAPT":null,"AIR_PM10_CAPT":null,"AIR_CURRENT_MODE":"Z","AIR_START_MODE":null,"AIR_END_MODE":null,"Qai":{"actualValue":null,"previousValue":null,"polluantDominant":null},"QaiIndex":{"currentValue":null,"l1":[0.0,25.0],"l2":[25.0,50.0],"l3":[50.0,75.0],"max":[75.0,100.0]},"Co2":{"currentValue":0.0,"l1":[400.0,800.0],"l2":[800.0,1200.0],"l3":[1200.0,1400.0],"max":[1400.0,2000.0]},"H2o":{"currentValue":null,"l1":null,"l2":null,"l3":null,"max":null},"SENSOR0_10_1_NAME":null,"SENSOR0_10_2_NAME":null,"Sensor0101MinMax":[null,null],"Sensor0102MinMax":[null,null],"H2O_VMC":{"actualValue":null,"previousValue":null},"H2O_EMBEDDED":{"actualValue":null,"previousValue":null},"SENSOR0_10_1":{"actualValue":null,"previousValue":null},"SENSOR0_10_2":{"actualValue":null,"previousValue":null},"CurrentModeOverride":false,"indicatorType":"AIR_Indicator"},"thermostats":null,"week_planning":[{"command":"00V"},{"command":"01V"},{"command":"02V"},{"command":"03V"},{"command":"04V"},{"command":"05V"},{"command":"06V"},{"command":"10V"},{"command":"11V"},{"command":"12V"},{"command":"13V"},{"command":"14V"},{"command":"15V"},{"command":"16V"},{"command":"20V"},{"command":"21V"},{"command":"22V"},{"command":"23V"},{"command":"24V"},{"command":"25V"},{"command":"26V"},{"command":"30V"},{"command":"31V"},{"command":"32V"},{"command":"33V"},{"command":"34V"},{"command":"35V"},{"command":"36V"},{"command":"40V"},{"command":"41V"},{"command":"42V"},{"command":"43V"},{"command":"44V"},{"command":"45V"},{"command":"46V"},{"command":"50V"},{"command":"51V"},{"command":"52V"},{"command":"53V"},{"command":"54V"},{"command":"55V"},{"command":"56V"},{"command":"60V"},{"command":"61V"},{"command":"62V"},{"command":"63V"},{"command":"64V"},{"command":"65V"},{"command":"66V"},{"command":"70V"},{"command":"71V"},{"command":"72V"},{"command":"73V"},{"command":"74V"},{"command":"75V"},{"command":"76V"},{"command":"80V"},{"command":"81V"},{"command":"82V"},{"command":"83V"},{"command":"84V"},{"command":"85V"},{"command":"86V"},{"command":"90W"},{"command":"91W"},{"command":"92W"},{"command":"93W"},{"command":"94W"},{"command":"95V"},{"command":"96V"},{"command":"A0W"},{"command":"A1W"},{"command":"A2W"},{"command":"A3W"},{"command":"A4W"},{"command":"A5V"},{"command":"A6V"},{"command":"B0W"},{"command":"B1W"},{"command":"B2W"},{"command":"B3W"},{"command":"B4W"},{"command":"B5V"},{"command":"B6V"},{"command":"C0W"},{"command":"C1W"},{"command":"C2W"},{"command":"C3W"},{"command":"C4W"},{"command":"C5V"},{"command":"C6V"},{"command":"D0W"},{"command":"D1W"},{"command":"D2W"},{"command":"D3W"},{"command":"D4W"},{"command":"D5V"},{"command":"D6V"},{"command":"E0W"},{"command":"E1W"},{"command":"E2W"},{"command":"E3W"},{"command":"E4W"},{"command":"E5V"},{"command":"E6V"},{"command":"F0W"},{"command":"F1W"},{"command":"F2W"},{"command":"F3W"},{"command":"F4W"},{"command":"F5V"},{"command":"F6V"},{"command":"G0W"},{"command":"G1W"},{"command":"G2W"},{"command":"G3W"},{"command":"G4W"},{"command":"G5V"},{"command":"G6V"},{"command":"H0V"},{"command":"H1V"},{"command":"H2V"},{"command":"H3V"},{"command":"H4V"},{"command":"H5V"},{"command":"H6V"},{"command":"I0V"},{"command":"I1V"},{"command":"I2V"},{"command":"I3V"},{"command":"I4V"},{"command":"I5V"},{"command":"I6V"},{"command":"J0Y"},{"command":"J1Y"},{"command":"J2Y"},{"command":"J3Y"},{"command":"J4Y"},{"command":"J5Y"},{"command":"J6Y"},{"command":"K0Y"},{"command":"K1Y"},{"command":"K2Y"},{"command":"K3Y"},{"command":"K4Y"},{"command":"K5Y"},{"command":"K6Y"},{"command":"L0V"},{"command":"L1V"},{"command":"L2V"},{"command":"L3V"},{"command":"L4V"},{"command":"L5V"},{"command":"L6V"},{"command":"M0V"},{"command":"M1V"},{"command":"M2V"},{"command":"M3V"},{"command":"M4V"},{"command":"M5V"},{"command":"M6V"},{"command":"N0V"},{"command":"N1V"},{"command":"N2V"},{"command":"N3V"},{"command":"N4V"},{"command":"N5V"},{"command":"N6V"}],"week_planning2":null,"week_planning3":null,"week_planning4":null,"lastUpdatedDate":"2024-09-06 20:07:15Z","modem":"E8FDF8299096","reference":"INSPIRAIR_HOME_S","serial_number":"N/A","type":"AIR","name":"Inspirair","address":"","postalCode":"","city":"","country":"","usureFiltre":0,"dateLastFilterUpdate":"2024-04-06 21:03:08Z","hasFilter":true,"gpsLatitude":45.658604,"gpsLongitude":11.5993827,"outdoorAirQualityAvg":42.705262749135905,"isConnected":true,"needUpdate":{"message":"Your app is outdated please update it using the app store and try again","storeAndroid":"https://play.google.com/store","storeApple":"http://appstore.com/aldes"}}]