biemond / com.athom.philipsair

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

AC3829/10 gives 'secretKey of null' in Homey app #4

Open iceburg1991 opened 4 years ago

iceburg1991 commented 4 years ago

Hi Edwin,

I recently, few days ago, bought a AC3829/10 and I can't connect the device in the Homey App. Initial i can add the device, but when I try to change something (like the Light level ring) it give me the error 'Cannot set property 'secretkey' of null' and all measurements are empty (see image). I read something from you that they changed firmware so maybe that's the case for me, but maybe we can work it out together.

I know the IP address i used is correct because i found a forum topic somewhere which named the same hostname MiCo and i have only 1 device in my network which is not identified yet.

I tried to use the airctrl debug you linked to in another issue, but I get an timeout on the 192.168.1.1 ip . So I'm stuck right now, maybe you can help me test/debug or something so we can work it out together so the app is 'compatible' with the latest firmware. I never really developed a Homey app so you need to help me with that if needed.

Kind regards, IJsbrand (dutch)

Screenshot_20200415-182638 Screenshot_20200415-182828

iceburg1991 commented 4 years ago

@biemond I tried to send it as int and a low humidity to be sure it's not blocked out of safety or something like that.

 {"state":{"desired":{"CommandType":"app","DeviceId":"","EnduserId":"1","rhset":50}}}

Same result nothing. Also tried the physical power unplugging suggested by @GSzabados , also without any difference :-( I am curious if there are ppl who have the option to change the desired humidity in their Air Matters app, because I still think it's not possible to change remotely (in my specific device type?).

biemond commented 4 years ago

ok old http firmware allowed it, maybe we should remove it , like air matters. maybe it is a bug

iceburg1991 commented 4 years ago

@biemond not sure if it's a bug or not, and I don't know if they can update the firmware ota when a possible fix is created ?... I would say just remove it for this device model and/or firmware to make it clear it's not a non-working function in your app :-p I can only say this for my device AC3829/10 + firmware 1.4.0. Maybe older firmware/ other device models can update this setting remotely

And you asked about the 'rh' key, it's indeed the current humidity percentage. If you need in the future more info about the keys for improvements just let me know.

Small improvement I would like to see is the 'Display mode PM2.5/IAI' in your app. I have another option in the Air Matters app which is 'humidity' (which will show the current humidity on the display). The key for the display mode is 'ddp' with the value '3' . I tested the value '3' in your testCoap.js and workes like a charm. It's funny because PM2.5 and IAI are '0' and '1' ... don't now what value 2 should be, it's something I don't have on my device. Maybe you can add this 3rd display option in your app for the purifier & humidity devices.

biemond commented 4 years ago

thanks, will do that plus see what it does on my devices when you set 3 as value "--ddp", help="set indicator pm2.5/IAI/Humidity", choices=["0", "1", "3"]

GSzabados commented 4 years ago

@iceburg1991, try this, set the function to PH - Purifier and Humidifier and then set the target humidity to your choice, 40, 50, 60.

I tried on my AC3829/50 what was sold as a AC3829/10. It changes the rhset value only if the function (func) set to PH.

I am using the py-air-control.

GSzabados commented 4 years ago

Otherwise there is a new app from Philips, it is called Clean Home+.

biemond commented 4 years ago

Oh wow. Thanks. Interface and setup looks the same so I guess the same makers as air matters

iceburg1991 commented 4 years ago

@GSzabados I just tried the following command without success. When removing the --rhset it works. So it's the rhset command which is just a problem for my device I think :-p

 airctrl --ipaddr 192.168.1.xxx --protocol coap --func 'PH' --rhset '50'

I will try the Clean Home+ app, maybe a replacement for the Air Matters app . :-)

GSzabados commented 4 years ago

@biemond I've received the advice from Philips support to use the new app, as the Air Matters allows the cloud login only on one device. I wanted to control from my phone and my wife's phone as well. That was the support's solution and indeed it works from multiple devices. @iceburg1991, I meant set the PH first, check that it is set, and after set the rhset. All without ' '.

--func PH

--rhset 50

biemond commented 4 years ago

Yeah at least google login is working there. On ios air matters works better with this.

But is the same app with less pollution noise

iceburg1991 commented 4 years ago

@GSzabados tried that too, without success first command works
airctrl --ipaddr 192.168.1.xxx --protocol coap --func PH and then the second doesn't work airctrl --ipaddr 192.168.1.xxx --protocol coap --rhset 50

GSzabados commented 4 years ago

@iceburg1991, ... that's s...

I am honestly bought mine as a AC3829/10, that's what brought me to this issue page as well, but mine shows up as AC3829/50. Almost all details are matching with your output except the aqit, what is 7 on mine, but that effects only the app. And the runtime. My runtime resets almost every 24 hours. Otherwise it sets the rhset value. Can you set it in the new Clean Home+ app?

iceburg1991 commented 4 years ago

@GSzabados No I can't change the humidity in the Clean Home+ app, it's exactly the same device interface and options as the Air Matters app

biemond commented 4 years ago

So added the new display mode to support humidity https://homey.app/nl-nl/app/com.athom.philipsair/Philips-Air/test/

biemond commented 4 years ago

plus timers by the way