jeremynoesen / homebridge-dyson-bp01

A Homebridge plugin that adds a Dyson BP01 to HomeKit using a BroadLink RM
https://www.npmjs.com/package/homebridge-dyson-bp01
GNU General Public License v3.0
4 stars 0 forks source link

[Dyson Pure Cool Me] Not connected to BroadLink RM #10

Open AyberkAltuntop opened 5 months ago

AyberkAltuntop commented 5 months ago

hello, thank you for the plug in. i have a homebridge installed in the container, homebridge rm pro and dyson plug ins are working but i could not manage to run this plug in. in the logs it says [Dyson Pure Cool Me] Not connected to BroadLink RM. i think i should somehow make Broadlink and this plug in talk but how? Thank you.

Ekran Resmi 2024-02-03 ÖS 6 01 07
jeremynoesen commented 5 months ago

Hey, sorry to hear that is happening! Could you possibly send me your config for the plugin? I'll try my best to debug this issue.

AyberkAltuntop commented 5 months ago

Thanks for your quick response. Plug in json config is as follows. Since I am not very expert on this subject, if this is not what you want, I would appreciate it if you could be a little more specific. thank you. :)

{ "name": "Dyson Pure Cool Me", "serialNumber": "C9E-EU-MFC0097A", "macAddress": "ec:0b:ae:a0:55:17", "accessory": "DysonBP01" }

jeremynoesen commented 5 months ago

Thank you. Have you verified that you typed the MAC address correctly? The format is correct, but do double check.

Could you also send a screenshot of what the plugin shows when it starts up? It should print available BroadLink devices once it starts searching.

AyberkAltuntop commented 5 months ago

Mac address is correct. I have attached the plugin log and screenshots to the topic.

homebridge-dyson-bp01.log.txt

Ekran Resmi 2024-02-03 ÖS 6 24 20 Ekran Resmi 2024-02-03 ÖS 6 24 05
jeremynoesen commented 5 months ago

What version of the plugin are you using? As well as Homebridge and Node versions.

Also if you know the exact model number of your RM Pro please send that too.

Have you tried running the plugin as a child bridge?

AyberkAltuntop commented 5 months ago

v1.10.9 is your plugin version and node.js is v18.13.0 and Homebridge v1.7.0.

RM 4 PRO

No, i didnt tried child bridge.

jeremynoesen commented 5 months ago

I believe the plugin requires node 20. You can update node by going to the homebridge terminal and typing "hb-service update-node" and restart Homebridge when done.

AyberkAltuntop commented 5 months ago

I updated node.js to 20.11.0 and reinstalled the plugin but the problem still persists. Am I missing something? We don't need to add or teach the dyson remote to Broadlink, do we?

Ekran Resmi 2024-02-03 ÖS 7 07 04
jeremynoesen commented 5 months ago

No you do not need to teach anything. The plugin is designed to work on it's own with minimal configuration. I will try to look more into this, perhaps a new hardware revision was released that a library the plugin uses doesn't support yet. Seeing that the BroadLink RM plugin works fine with it, I don't have any other troubleshooting ideas to give. I'll get back to you with my findings. Sorry about the inconvenience!

jeremynoesen commented 5 months ago

I'm assuming you already disabled the "Lock Device" setting in the BroadLink app? And also tried a child bridge?

AyberkAltuntop commented 5 months ago

Thank you very much for your support and help. child bridge also did not change the result. There is no problem with my other IR devices such as tv at the moment, but as I said, I cannot use this plugin and dyson pure cool me. I would be glad if you keep me informed about updates. Thanks again.

jeremynoesen commented 5 months ago

Real quick, could you link the BroadLink RM plugin you're using? And if possible, the serial number of your BroadLink RM (should be printed on the bottom or visible in the BroadLink app)?

AyberkAltuntop commented 5 months ago

https://github.com/kiwi-cam/homebridge-broadlink-rm#readme

RM7CI0200377

jeremynoesen commented 5 months ago

Ok so my plugin and that one use the same library for connecting to devices, so I'll have to look into what's going on here. I may need your help since I don't own an RM4 Pro, but I'll let you know when I get there.

AyberkAltuntop commented 5 months ago

Of course, anything I can do. I'll be waiting updates. Thanks.

AyberkAltuntop commented 5 months ago

There's something like that in the logs. I wanted to share it in case it might help you.

Thank you.

Ekran Resmi 2024-02-08 ÖS 4 32 55
jeremynoesen commented 5 months ago

That might be an issue to take up here. The fact its even going into that branch of code indicates this BroadLink RM is not officially supported by the library. Also probably a bug with that line in particular. I will do more testing this weekend.

jeremynoesen commented 3 months ago

If you could please test the latest version to see if it is still broken, that would be great. I did not do anything related to this issue, so I anticipate that it is still broken. What I said above probably is false considering homebridge-broadlink-rm still works for you.

jeremynoesen commented 2 months ago

To make this easier, I purchased an RM4 Pro to test it myself. It should be here in a week.

AyberkAltuntop commented 2 months ago

I hope you didn't buy it just for me :). The problem persists by the way, waiting to hear from you then.

Thank you very much.

jeremynoesen commented 2 months ago

I have no clue if anyone else is experiencing this, so it's best I try to solve it anyways. Also, I bought it through Amazon and plan to return it when I'm done. I'd love to use another one of these for my living room, but there is nowhere to put it.

jeremynoesen commented 2 months ago

My RM4 Pro came in today. I am able to reproduce the issue and can confirm the RM4 Pro does not work with this plugin at the moment. I will have some time in a couple weeks to work on actually fixing the issue.

AyberkAltuntop commented 2 months ago

Thank you for the information and for confirming the issue. I look forward to hearing back, thank you very much.

jeremynoesen commented 2 months ago

I was able to to some limited testing just now. A message showing that RF support was enabled for my RM4 Pro shows up (something that is part of the library), but it can't seem to find it. I also tested with kiwi_cam's plugin, and it does not connect to it for some reason.

jeremynoesen commented 2 months ago

I tried testing the library separate from the plugin and ran into the same behavior. I guess the RM4 Pro is not supported, even though the library says it is. I must be missing something, so I am not gonna write this off yet.

jeremynoesen commented 2 months ago

I think I discovered the fix for your specific issue, specifically this. Since it is considered a manual device, it wants to print that to the log; however, the log was never defined. I pushed a fix for that, but I plan to include it in my next release, which will probably happen tomorrow.

AyberkAltuntop commented 2 months ago

Woaw thank you for the information. I can't wait to try it :)

jeremynoesen commented 2 months ago

Ill be sure to let you know here when I send out the update. It would be version 1.12.0.