fsaris / home-assistant-awox

AwoX mesh light integration for Home Assistant
MIT License
84 stars 23 forks source link

Awox plug plus integration would allow wifi acces : requested #48

Closed MarcW-HA closed 2 years ago

MarcW-HA commented 3 years ago

Hello, If I may suggest to put the Awox connect plug plus on your highest priority followed by the adoption of the same rooms as in the Awox app would open a world of possibilities. The plug is a wifi bridge via the awox cloud it sees all the bleutooth devices in its mesch. Intégration allows thus to use the lights without bleutooth in the range of the HA server. This would be a blessing for those who can not reach a bleutooth device from the HA server. Note for info remote control and pir detection work in bleutooth range even if the HA server has taken the bleutooth mesch in control of the lamps. I have the plug so willing to test.

Good work just needs some work to make it super great Thx

fsaris commented 3 years ago

If you sponsor my such a plug I will definitely dive into it. But currently I don't have such a device

MarcW-HA commented 3 years ago

Hello,If you agree to send me your address I will figure out what is the most appropriate. I send you one by mail, here I have one for 39.95euro. Or I can send you the funds transfer then I will need the Iban and rib of your bank account. PS : I live in Luxembourg. Just let me knowMarcEnvoyé depuis mon téléphone Huawei-------- Message original --------De : Frans Saris @.>Date : mar. 3 août 2021 à 19:36À : fsaris/home-assistant-awox @.>Cc : MarcW-HA @.>, Author @.>Objet : Re: [fsaris/home-assistant-awox] Awox plug plus integration would allow wifi acces : requested (#48) If you sponsor my such a plug I will definitely dive into it. But currently I don't have such a device

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

Dillton commented 2 years ago

Hello guys.

I got recently the EGLO lights and theyre all connected to HA without problem. But the problem maybe lets say 2 problems are I think in my bluetooth adapter. I am running windows PC with installed HA in virtualbox. So first problem I had issue with range of BT signal - solved with 5dbi antenna connected to BT module in PC. However second issue persists. After some time of HA is running I dont know why but for some reason all lights not responding to HA commands (on/off, etc.). I think that might be because of ZigBee module which causes some signal interference?

And there are my questions: 1) Are you able to somehow help me with debugging? Some remote session or sent you logs or something like that please :)? I am completely opened to provide any data so the integration will be 110% functional :). 2) What is the status of implementing the EGLO Plug + to the integration? I think this will solve both of my problems.

Anyway thank you very much and great job with Awox integration I really appreciate it, keep up.

Dillton commented 2 years ago

Maybe I have one more idea. I am using in my living room and in bedroom Raspberry PIs with touchscreen as HA control panels for those rooms. So maybe create some plugin for RPIs and use their built-in bluetooth to be a part of Awox mesh?

fsaris commented 2 years ago

I still don't have a awox plug. So no progress there.

Building a real mesh node (for extending the range) will be a whole other level. And because the API/protocol isn't fully known it will not be that easy.

When the control gets unresponsive is there then a helper process that uses 100% CPU?

Dillton commented 2 years ago

Ok I understand.

CPU usage. I can check that when it will become unresponsive. Like I said its very random sometimes its working few hours sometimes severel days. So far only thing I can do to solve the response is to restart HA or whole PC where HA is running. At the same time control from Awox app on my phone is working. I will post update on this topic when it will happen.

One more thing I am not sure if I should open a new issue but I have connected HA to Google Home and the color change lets say its trying to change but the lights only blink to requested color and goes back white with 100% brightness. I found out that when I use official Awox integration in Google Home then the color change is working great. Probably because Its running through the Awox Plug but as I said its strange that it blinks to requested color => go back white and curious thing is that changing color from HA pallete is working. So I guess there must be some data loss or I dont know. Unfortunately I didnt notice any error in HA log so I am thinking how to debug this.

MarcW-HA commented 2 years ago

Hallo Frans, Ik heb je gemailed ik koop niet op internet. Geef de rekening en ik stort u de som om een te kopen. Delaid answer I am building a house and don't have lots offvtime to read email ;=) Sorry in dutch not directly related to subject  but it is in some wayThxEnvoyé depuis mon téléphone Huawei-------- Message original --------De : Frans Saris @.>Date : mer. 6 oct. 2021 à 19:22À : fsaris/home-assistant-awox @.>Cc : MarcW-HA @.>, Author @.>Objet : Re: [fsaris/home-assistant-awox] Awox plug plus integration would allow wifi acces : requested (#48) I still don't have a awox plug. So no progress there. Building a real mesh node (for extending the range) will be a whole other level. And because the API/protocol isn't fully known it will not be that easy. When the control gets unresponsive is there then a helper process that uses 100% CPU?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

Dillton commented 2 years ago

Good evening. So the lights are currently not responding and CPU usage is approx 15%: image

New thing for me: Looks like I dont have to restart HA or PC to fix this, just need to reload the integration.

UPDATE: After integration reload the CPU usage is only 2-4%: image

UPDATE: Not sure if this can help somehow but here you can see some Bluetooth errors: image image

fsaris commented 2 years ago

looks like the bluetooth adapter isn't very stable. Is it near enough of the light?

fsaris commented 2 years ago

@Dillton could you try current main version? I just pushed a little change so that the mesh tries to reconnect when a command failed

to install main version:

1.Go to HACS => Integratrions

  1. Click on the three dots icon in right bottom of the Awox card
  2. Click Reinstall
  3. Make sure Show beta versions is checked
  4. Select version main
  5. Click install and restart HA
Dillton commented 2 years ago

BT adapter is like 2 meters to the closest light on one side of appartment and like 3 meters to the second closest light on other side of appartment (8 light in total). I tried already two adapters one is Intel 9560NGW which should be BT 5.1 and few days ago I tried to run on ASUS USB BT500 and this one is BT 5.0. Same beahviour on both.

Thank you for update, deploying main version now.

I will post update when something goes wrong or if it will be ok.

Dillton commented 2 years ago

Ok so again I have no response from lights and "No device connected" in log. image image image image

fsaris commented 2 years ago

Will dive into that in one of the next days. Integration should try to reconnect in this case.

But also looks that your Bluetooth adapter isn't that stable.

Dillton commented 2 years ago

Ok and thank you. Please let me know when you will have a new test version. Meanwhile I will try to get and use another adapter.

Dillton commented 2 years ago

Hello @fsaris, so I have tried another BT adapter and still the same errors. Do you have any progress with the integration? :)

fsaris commented 2 years ago

Improved logging and connecting process was added in https://github.com/fsaris/home-assistant-awox/releases/tag/0.1.2

Closing this ticket now as the basic support for plugs is available. For now the wifi is out of scope. Not sure even if it would be possible to use the wifi without using the Awox webservices.