kovapatrik / homebridge-midea-platform

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

Log error "MessageQuery" #93

Open scaryfast8750 opened 2 months ago

scaryfast8750 commented 2 months ago

Just upgraded to the new version and seeing this error in the log files:

[7/15/2024, 8:03:34 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageQuerySubtype, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device. [7/15/2024, 8:03:35 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageQuery, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device. [7/15/2024, 8:03:36 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageNewProtocolQuery, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device.

Plugin Version: v1.1.0 Homebridege: v1.8.3, UI v4.56.4 Node: v20.15.1

JSON Config: pretty much all default

{ "devices": [ { "type": "Air Conditioner", "name": "Mini Split", "id": XXXXXXX, "advanced_options": { "token": "XXXXXXX", "key": "XXXXXXXX" }, "AC_options": { "swing": { "mode": "Vertical" }, "displaySwitch": { "flag": false }, "tempStep": 0.5, "fahrenheit": true } } ], "_bridge": { "username": "XXXXXXX", "port": 35575 }, "platform": "midea-platform" }

kovapatrik commented 1 month ago

Is this happening all the time? Or how common this issue occurs?

scaryfast8750 commented 1 month ago

It occurs on plugin start. No messages in the logs after that. On Jul 17, 2024, at 7:07 AM, Kovalovszky Patrik @.***> wrote: Is this happening all the time? Or how common this issue occurs?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

kovapatrik commented 3 weeks ago

Is this still happening with the latest beta version?

scaryfast8750 commented 3 weeks ago

Still seeing it with v1.1.2-beta.6

[8/20/2024, 10:52:08 AM] [homebridge-midea-platform] Discovered device: {"ip":”192.168.X.XX","port":6444,"id”:XXXXX,"model":"00000Q1B","sn”:"XXXXX","name":"net_ac_D202","type":172,"version":3} [8/20/2024, 10:52:08 AM] [homebridge-midea-platform] [Mini Split] Restoring existing accessory from cache: Mini Split [8/20/2024, 10:52:08 AM] [homebridge-midea-platform] [Mini Split] Cached device, using token/key from config file [8/20/2024, 10:52:09 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageQuerySubtype, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device. [8/20/2024, 10:52:10 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageQuery, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device. [8/20/2024, 10:52:11 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageNewProtocolQuery, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device. [8/20/2024, 10:52:12 AM] [homebridge-midea-platform] [Mini Split] Starting network listener. [8/20/2024, 10:52:16 AM] [homebridge-midea-platform] All configured devices added to Homebridge

On Aug 20, 2024, at 9:02 AM, Kovalovszky Patrik @.***> wrote:

Is this still happening with the latest beta version?

— Reply to this email directly, view it on GitHub https://github.com/kovapatrik/homebridge-midea-platform/issues/93#issuecomment-2298941912, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVDJ35Y3PEXUONC2XO4AISLZSND73AVCNFSM6AAAAABK423YK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYHE2DCOJRGI. You are receiving this because you authored the thread.

kovapatrik commented 2 weeks ago

Maybe the error is related to a cached state or something. Could you please try removing your device from the Homebridge cache and then try again?

scaryfast8750 commented 2 weeks ago

Steps Completed:

  1. Deleted cached item, Re-added. Still persists
  2. Deleted item from Bridge, re-added. still persists
  3. Upgraded from Midea App to Smart Home App. Discovered split through the app and added. still persists
  4. Tried both 1.1.1 and 1.1.2. Still persists.

The one thing I noticed is that this is how I reproduce the issue.

  1. When you add the split new and initial bridge start the logs are clean with no errors and you see

[8/27/2024, 9:10:46 AM] [homebridge-midea-platform] Discovered device: {"ip":"XXXXX","port":6444,"id":XXXXX,"model":"00000Q1B","sn":"XXXXX","name":"net_ac_D202","type":172,"version":3} [8/27/2024, 9:10:46 AM] [homebridge-midea-platform] Adding new accessory: Mini Split [8/27/2024, 9:10:46 AM] [homebridge-midea-platform] [Mini Split] New device at 192.168.1.87:6444, using token/key from config file[8/27/2024, 9:10:46 AM] [homebridge-midea-platform] [Mini Split] Starting network listener. [8/27/2024, 9:10:54 AM] [homebridge-midea-platform] All configured devices added to Homebridge

  1. The first time you restart the child bridge after a clean restart when adding, then the error shows up, then it persists. What else can I do to help you troubleshoot this.

[8/27/2024, 9:13:40 AM] [homebridge-midea-platform] Discovered device: {"ip":"XXX","port":6444,"id":XXX,"model":"00000Q1B","sn":"XXX","name":"net_ac_D202","type":172,"version":3} [8/27/2024, 9:13:40 AM] [homebridge-midea-platform] [Mini Split] Restoring existing accessory from cache: Mini Split [8/27/2024, 9:13:40 AM] [homebridge-midea-platform] [Mini Split] Cached device, using token/key from config file [8/27/2024, 9:13:40 AM] [homebridge-midea-platform] [Mini Split] Starting network listener. [8/27/2024, 9:13:41 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageQuerySubtype, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device. [8/27/2024, 9:13:42 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageQuery, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device. [8/27/2024, 9:13:43 AM] [homebridge-midea-platform] [Mini Split] Does not supports the protocol MessageNewProtocolQuery, ignored, error: Error: [Mini Split | refresh_status] Error when receiving data from device. [8/27/2024, 9:13:48 AM] [homebridge-midea-platform] All configured devices added to Homebridge

kovapatrik commented 2 weeks ago

hmm, really weird, especially since no one other than you reported this error, I can't really wrap my head around what's going on here

scaryfast8750 commented 2 weeks ago

It doesn’t affect performance in any way that I can tell. HomeKit works great and the app works great. It just prints that error in the homebridge logs. When I look in the smart home app the version of the WiFi adapter is up to date and is on v1.0.8Is there anything you can think of I can send you to help troubleshoot?  I can keep an eye on and and report back if anything changes. Just let me know if you want to keep researching. SOn Aug 28, 2024, at 6:13 PM, Kovalovszky Patrik @.***> wrote: hmm, really weird, especially since no one other than you reported this error, I can't really wrap my head around what's going on here

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

scaryfast8750 commented 2 weeks ago

Any chance this is a config issue?  I grabbed mine out of the json editor. Everything is default except vertical swing, Fahrenheit and heating option are enabled. devices": [                {                    "type": "Air Conditioner",                    "name": "Mini Split",                    "id": xxx,                    "advanced_options": {                        "token": "xxx",                        "key": "xxx"                    },                    "AC_options": {                        "swing": {                            "mode": "Vertical"                        },                        "fahrenheit": true                    }                }            ],            "platform": "midea-platform",            "_bridge": {                "username": "xxxxxx",                "port": 43731            }On Aug 28, 2024, at 6:13 PM, Kovalovszky Patrik @.***> wrote: hmm, really weird, especially since no one other than you reported this error, I can't really wrap my head around what's going on here

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

kovapatrik commented 1 week ago

I wouldn't think it's a config issue. It must be some network-related issue, maybe there should be some waiting time between the connection being made to the device and the query messages being sent out.