AdyRock / com.switchbot

GNU General Public License v3.0
9 stars 5 forks source link

Got ! [object Object] error when I use on/off on one of my aircons. #9

Closed salbang closed 2 years ago

salbang commented 3 years ago

I've generated diagnosis report. The unique id is 20f63eaa-cb2d-4da8-b398-ae97ad614a1d . Could you please have a look into this problem? Thanks for your work and help. IMG_3116

AdyRock commented 3 years ago

I can't reproduce that one. I have tried switching off the hub and I get a sensible error message. The diagnostic log is not showing any issues. Could you try enabling the apps log: More > Apps > SwitchBot > Configure App > Log tab and set the Diagnostic Log to Basic Information. Then operate the AC so you see the error message. Then go back to the log and tap on Send Log.

salbang commented 3 years ago

I've sent the log.

salbang commented 3 years ago

This problem still persists in the test version. Power off works but power on or temperature setting gives the same error.

salbang commented 3 years ago

I got the reason. The aircon does not support auto mode and it is disabled in switchbot app. If I change mode to cool in homey and do jobs like power on and set temperature, then everything is OK. So, it might be better to give some details in error message when the app gets empty response from switchbot api call. Thanks.

AdyRock commented 2 years ago

Hopefully all error message should be clearer now, at least in as much as they will show the information I get back in a readable form. Unfortunately Homey doesn't allow dynamic list so I have to include all the options. Also I can't see any way to get the list of supported features back from SwitchBot. So for now I can't address the unsupported options.