biemond / com.athom.philipsair

Philips AIR purifier app for Homey
GNU General Public License v3.0
4 stars 2 forks source link

Humidity #1

Closed iFac3 closed 4 years ago

iFac3 commented 4 years ago

Hi biemond,

First of all I’d like to thank you so much this Homey app!

What I experienced is regards to Humidity. The device shows target humidity instead of measured humidity. I can not access the integrated humidity sensor data even from insights, however would be awesome to set up automations based on this.

EC2DFE03-497D-471C-817C-0B03D5C7F97E

Other thing is connected to HomeKit Experiment. Philips device appears as a switch instead of purifier/humidifier and shows in the details target instead of current humidity.

My device is 3000i 2 in 1 Purifier and Humidifier (AC3829/10)

biemond commented 4 years ago

Hi, Indeed I see this https://github.com/rgerganov/py-air-control/blob/master/pyairctrl/airctrl.py#L146-L151

and totally missed it, let me fix it now.

about the switch, I use climate as app https://github.com/biemond/com.athom.philipsair/blob/master/app.json#L20 and device is other https://github.com/biemond/com.athom.philipsair/blob/master/app.json#L376 I can use

Fan | fan | Use this device class for fans that cool your home. Heater | heater | Use this device class for heaters, that warm your home.

but that is also not correct. I don't know how homekit is doing its translation.

thanks

biemond commented 4 years ago

done, submitted version 0.0.5 to athom or you can do homey app install from this repo. for target you need to remove and add the device again. plus you have now a humidity change trigger for your flows.

iFac3 commented 4 years ago

Thanks a lot! 0.0.5 upgrade happened couple of days ago, since then works like a charm. But there is another bug what I can report you. When I readded device, after setting the right IP, Homey saved a not known IP first...

IMG_4959

...after editing it in settings, device started to report sensor data. The same happened first time with previous version and now with 0.0.5

Very look forward features like sleep/auto/allergen modes, light on/off, humidification on/off.

Cheers! ;)

biemond commented 4 years ago

ok hehe, thanks. this is my ip. I will remove it and work on the new actions.

iFac3 commented 4 years ago

Awesome! I’ll test it with joy!

iFac3 commented 4 years ago

0.0.7 update is awesome! Only one thing I miss is the humidifier function on/off.

I hope actions will come soon. 😉

biemond commented 4 years ago

nice, I will try to add another device type which support purifier and humidifier. ( add the extra options) I cannot test them but I will take a look at it.

iFac3 commented 4 years ago

I would test it with joy!

Rgds,

Gergely. On 2019. Dec 20. 17:10 +0100, Edwin Biemond notifications@github.com, wrote:

nice, I will try to add another device type which support purifier and humidifier. ( add the extra options) I cannot test them but I will take a look at it. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

biemond commented 4 years ago

perfect, let me find out how this beta testing works on homey.

biemond commented 4 years ago

here we go https://homey.app/nl-nl/app/com.athom.philipsair/Philips-Air/test/ please try it out. added new device and restrict the current one. you can set func and target humidity . plus I show the water level ( don't know what it displays.)

iFac3 commented 4 years ago

Hi Edwin,

Cool! Installed, tested.

Feedback:

• After install, similar issue to earlier versions with IP. After setting up and getting back to IP setup, IP address does not appear, however sensor reading works. If I type it again and save, it appears. • Purification/Both switcher works • Target Humidity switcher does not • At readings, Water level shows “-“ (chk attachment) but as far as I know device only can show when it’s empty

So far so good! 😉

Rgds,

Gergely. On 2019. Dec 23. 13:26 +0100, Edwin Biemond notifications@github.com, wrote:

here we go https://homey.app/nl-nl/app/com.athom.philipsair/Philips-Air/test/ please try it out. added new device and restrict the current one. you can set func and target humidity . plus I show the water level ( don't know what it displays.) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

iFac3 commented 4 years ago

Icon suggestions:

GAS: https://www.flaticon.com/free-icon/co2_1435182?term=co2%20pollution&page=1&position=3

Allergen index: https://www.flaticon.com/free-icon/flower_2257463

Water level: https://www.flaticon.com/free-icon/water-tank_2385748?term=water%20tank&page=1&position=69

biemond commented 4 years ago

thanks, I will work on those.

For Target Humidity switcher I don't know if you can install node on your pc /laptop. but can you run test6.js from the com.athom.philipsair directory. like node test6.js

you have to change the ip to yours https://github.com/biemond/com.athom.philipsair/blob/master/test6.js#L12

Very curious about the below output, plus change the humidity target with all the possible values. after that I can resolve it. (maybe it is a number instead of a string)

statusCode: 200
{
  om: 's',
  pwr: '1',
  cl: false,
  aqil: 100,
  uil: '1',
  dt: 0,
  dtrs: 0,
  mode: 'P',
  pm25: 1,
  iaql: 1,
  aqit: 10,
  tvoc: 1,
  ddp: '1',
  rddp: '1',
  err: 0
}
biemond commented 4 years ago

Also very interested in this wink filter.

biemond commented 4 years ago

pushed a new test version with the advanced settings fix and the new icons.

iFac3 commented 4 years ago

All fine! ThxAlot! Merry Christmas! (if you celebrate it)

Üdv,

G. On 2019. Dec 24. 13:14 +0100, Edwin Biemond notifications@github.com, wrote:

pushed a new test version with the advanced settings fix and the new icons. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

iFac3 commented 4 years ago

Hi biemond,

I've run test6.js several times, output is in attachments.

NoWater.txt - Target Humidity 50% / Empty Water Tank FilledWater.txt - Target Humidity 50% / Full Water Tank Target40percent.txt - Target Humidity 40% Target60percent.txt - Target Humidity 60% TargetMaximum.txt - Target Humidity Maximum

Target Humidity states in Air Matters app:

IMG_4CD6F8CB8F1B-1

As water level decreases by the time, value of "wl" remains 100 till tank becomes empty, then changes to 0. So I think in Homey App, 100 should equals "OK" and 0 "Empty" in device's dashboard. (now it shows "-" all time if full or empty)

Other suggestions: In device switcher part:

IMG_EEECDFB6567C-1

"enabled" in titles is misleading at Display and Child lock since if related feature is switched off it shows enabled.

Humidifier function switching may also should be here, to be more clear with users.

iFac3 commented 4 years ago

I haven't seen wick filter info in results of test6.js and since I have a Docker image installed with py-air-control I checked status of device and status of filters as well:

Képernyőfotó 2019-12-29 - 17 21 33
biemond commented 4 years ago

thanks. this helps. can you do filter again with -d debug switch , I am curious if I see the response

biemond commented 4 years ago

actions

Discussion

Todo

iFac3 commented 4 years ago

I ran it with -d switch, seems nothing changed to me

test6-d.txt

biemond commented 4 years ago

ah cool, thanks. I will add more debug on test6.js. I expect in the next 30 minutes a new testable version.

iFac3 commented 4 years ago

Discussion

biemond commented 4 years ago

good, will do that.

biemond commented 4 years ago

and new version is here https://homey.app/a/com.athom.philipsair/test/ plus updated test6.js for more filter output.

iFac3 commented 4 years ago

New things has appeared! Here you are: NewResultsofTest6.txt

biemond commented 4 years ago

nice

{
  fltt1: 'A3',
  fltt2: 'C7',
  fltsts0: 278,
  fltsts1: 4325,
  fltsts2: 4325,
  wicksts: 4325
}
iFac3 commented 4 years ago

Hmmmm... what fltt1&2 refer to?

Üdv,

G. On 2019. Dec 29. 18:56 +0100, Edwin Biemond notifications@github.com, wrote:

nice { fltt1: 'A3', fltt2: 'C7', fltsts0: 278, fltsts1: 4325, fltsts2: 4325, wicksts: 4325 } — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

biemond commented 4 years ago

I think the type of filter which is used. it says something about the hepa and carbon filter type.

iFac3 commented 4 years ago

New version has just been tested out. All features and readings (even water level) works fine except Humidifier switch. It does not at all.

Rgds,

Gergely. On 2019. Dec 29. 19:03 +0100, Edwin Biemond notifications@github.com, wrote:

I think the type of filter which is used. it says something about the hepa and carbon filter type. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

biemond commented 4 years ago

you mean purifier or both or the target Humidity

biemond commented 4 years ago

I see the issue, fixing it now

biemond commented 4 years ago

pushed a new test version

iFac3 commented 4 years ago

Everything is OK! 😃

Rgds,

Gergely. On 2019. Dec 29. 20:06 +0100, Edwin Biemond notifications@github.com, wrote:

pushed a new test version — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

biemond commented 4 years ago

awesome, will push it athom. thanks for all the testing.

iFac3 commented 4 years ago

Thank you for your awesome work!

Rgds,

Gergely. On 2019. Dec 29. 20:18 +0100, Edwin Biemond notifications@github.com, wrote:

awesome, will push it athom. thanks for all the testing. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

biemond commented 4 years ago

this is now live, now I will work on this wick filter

iFac3 commented 4 years ago

Hi biemond,

Just wanted to say big thanks, I could manage to automate my Philips Air device very well with the new flow abilities.

Once if you can spend some more time on this app, the light ring flow control would be the last missing thing from my perspective.

Cheers!

biemond commented 4 years ago

hehe too much light at night. will do.

thanks

iFac3 commented 4 years ago

You’rright! Thanks!

Btw, since last update I found something. Product code was missing, so I readded the device but after couple of hours it lost again the code.

4D2CF0AB-9D0B-4DF5-AACB-B519535C139A

From other perspective, app works pretty well.

biemond commented 4 years ago

oh, I think I got some error on getting the latest data. I am doing 3 steps , 1st get status, filters and firmware. I think the last part goes wrong sometimes but I would expect it should be ok after a while.

Let me check this firmware part.

biemond commented 4 years ago

can you check this version. https://homey.app/nl-nl/app/com.athom.philipsair/Philips-Air/test/ . I now reset the values between the polling plus show where the error occurs ( status, filter or firmware)

iFac3 commented 4 years ago

Hi,

Two days passed with new version, no issues so far, moreover seems more accurate on status reporting.

Rgds,

G. On 2020. Feb 24. 22:07 +0100, Edwin Biemond notifications@github.com, wrote:

can you check this version. https://homey.app/nl-nl/app/com.athom.philipsair/Philips-Air/test/ . I now reset the values between the polling plus show where the error occurs ( status, filter or firmware) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

biemond commented 4 years ago

cool , will publish this version. maybe the error is still there on the philips device, at least 2 min later it will be refreshed by a new state

iFac3 commented 4 years ago

Hi biemond!

It seems there is some issue since Homey 4.1.0... I lost control over my Philips Air device. It reads all data, but can not set any feature I had before so flows do not work anymore. I readded the device, it worked for a while but then lost the ability of control again.

biemond commented 4 years ago

ah , that is bad. in the apps it works for me. I will check the flows.

biemond commented 4 years ago

also action flows + triggers are working for me. I was already using 4.1.0 or it RC version for the last 11 days.

biemond commented 4 years ago

maybe you can check your homey total memory or cpu power. https://developer.athom.com/tools/system or https://developer.athom.com/tools/app-profiling

are you using a lot of apps and flow. I got this

nodeVersion | "v8.16.0"
homeyVersion | "4.1.0"
homeyModelId | "homey3s"
homeyModelName | "Homey (Early 2019)"
iFac3 commented 4 years ago

I guess no weakness on cpu or memory, since I have Pro version. I got this:

nodeVersion "v8.16.0" homeyVersion "4.1.0" homeyModelId "homey3d" homeyModelName "Homey Pro (Early 2019)”

Shall I reinstall Philips Air app? On 2020. Mar 31. 0:04 +0200, Edwin Biemond notifications@github.com, wrote:

maybe you can check your homey total memory or cpu power. https://developer.athom.com/tools/system or https://developer.athom.com/tools/app-profiling are you using a lot of apps and flow. I got this nodeVersion | "v8.16.0" homeyVersion | "4.1.0" homeyModelId | "homey3s" homeyModelName | "Homey (Early 2019)" — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

iFac3 commented 4 years ago

I have this under developer access:

Philips status.xlsx