kovapatrik / homebridge-midea-platform

Homebridge plugin for Midea devices
https://www.npmjs.com/package/homebridge-midea-platform
Apache License 2.0
29 stars 2 forks source link

New device discovered, you must add it to the config.json settings. #96

Closed andretimar closed 4 months ago

andretimar commented 4 months ago

Describe The Bug:

After a fresh install of the latest Homebridge and installing the latest version of the plugin I can successfully discover my device using my credentials from Midea. After I click Add (token visible) and I restart my Homebridge as instructed I get the message:

New device discovered, you must add it to the config.json settings.

It seems like my config.json is empty, I found no sample code how to add it manually and retrieve my tokens as during adding it they are truncated.

The accessory doesn't become visible in Apple Home.

Logs:

[23/07/2024, 22:55:25] [midea-platform] Discovered device: {"ip":"192.168.0.25","port":6444,"id":152832116299415,"model":"00000Q19","sn":"000000P0000000Q19CC12D1233140000","name":"net_ac_3314","type":172,"version":3}
[23/07/2024, 22:55:25] [midea-platform] [net_ac_3314 | 192.168.0.25}] New device discovered, you must add it to the config.json settings.

Plugin Config:

{
    "platform": "midea-platform"
}

Screenshots:

Screenshot 2024-07-23 at 23 06 59 Screenshot 2024-07-23 at 23 05 27 Screenshot 2024-07-23 at 23 04 49

Environment:


kovapatrik commented 4 months ago

After you add click on Add you also need to save the form, with the save button at the bottom of it.

andretimar commented 4 months ago

Hey @kovapatrik thanks for the quick reply. I did that but here's a JAM recording for it - https://jam.dev/c/fb64a789-bbd4-483d-9219-397d5211e420

kovapatrik commented 4 months ago

It says its a private link.

andretimar commented 4 months ago

@kovapatrik sorry, should be public now.

kovapatrik commented 4 months ago

hm yeah, it should appear in the form as a new device and it's not doing that. let me check

kovapatrik commented 4 months ago

it's working at my end, maybe there are some extensions in your browser which blocks JavaScript code? or some cases the browser itself can do that

andretimar commented 4 months ago

Worked like a charm in incognito, thanks for the quick support, it's working perfectly now! 🇭🇺 🍺