ConnectorGit / HA-Connector

1 stars 2 forks source link

already copy connector to config but nothing showup in HA integration #3

Open p2544 opened 3 years ago

p2544 commented 3 years ago

I have copy the director connector to \192.168.1.xxx\config\connector

restart home assistant server, go to integration even hit F5 to refresh and add i still cannot find "connector" for my blinds in the integration.

Please help!!

nzamps commented 2 years ago

I got this to work by putting the connector folder in /config/custom_components and adding a required version number to manifest.json >

"version": "1.0.0",

ConnectorGit commented 2 years ago

Please put the connector folder in /config/custom_components

p2544 commented 2 years ago

Please put the connector folder in /config/custom_components

already do it, restart home assistant and searching again in the integration, still didn't find it. Screenshot 2021-09-16 225127

p2544 commented 2 years ago

Screenshot 2021-09-16 224603

nzamps commented 2 years ago

did you add the version field to manifest.json?

"version": "1.0.0"

p2544 commented 2 years ago

did you add the version field to manifest.json?

"version": "1.0.0"

I am not sure just copy the whole folder in your git and follow the instruction, do I need to do any extra modification? where should I do? Screenshot 2021-09-17 095557

nzamps commented 2 years ago

Should work if you copied my manifest.json

it should look like:

{
  "domain": "connector",
  "name": "connector",
  "config_flow": true,
  "version": "1.0.0",
  "documentation": "https://www.home-assistant.io/integrations/connector",
  "requirements": [],
  "ssdp": [],
  "zeroconf": [],
  "homekit": {},
  "dependencies": [],
  "codeowners": [
    "@lucas"
  ]
}
p2544 commented 2 years ago

image this is before modify manifest.json

nzamps commented 2 years ago

yeah so add the line:

"version": "1.0.0",

p2544 commented 2 years ago

yes, thanks. it just appear after trying for months. I think you should fix your zip in git download too.

image

p2544 commented 2 years ago

hi, @nzamps I got stuck again, where can I obtain the API key? I am using dooya Bridge DD7002B with RTS motor image

nzamps commented 2 years ago

I'm using a Bridge from shadeconnector.com so to get an API Key I emailed:

support@shadeconnector.com

p2544 commented 2 years ago

I'm using a Bridge from shadeconnector.com so to get an API Key I emailed:

support@shadeconnector.com

already got the api key, but seem like the integration didn't provide any entities. (see photo) image

nzamps commented 2 years ago

Is your Bridge supported by Connector?

p2544 commented 2 years ago

yes, I use connect app almost every day for 6 months already with dooya Bridge DD7002B working very well with app

On Tue, 21 Sept 2021 at 04:57, Brian @.***> wrote:

Is your Bridge supported by Connector?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ConnectorGit/HA-Connector/issues/3#issuecomment-923357124, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2IMADMIQWJCSWJ7I5DAELUC6U35ANCNFSM5CP6BHHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.an ![9d12f895-7b6c-4db8-944b-a208ace71115](https://user-images.githubusercontent.com/24413696/134097782-507c265e-2ef2-4580-9368-71d9d2e45ade.jpg) droid&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

p2544 commented 2 years ago

DD7002B-433MHz-Connector-Link-Wifi

p2544 commented 2 years ago

dfd

ConnectorGit commented 2 years ago

Please click five consecutive times on the about page to get the key about

p2544 commented 2 years ago

yes, I already got the key and already put in Home assistant's connector integration will show you a vdo then everything would be clearer.

On Wed, 22 Sept 2021 at 15:15, ConnectorGit @.***> wrote:

Please click five consecutive times on the about page to get the key [image: about] https://user-images.githubusercontent.com/75159551/134307429-9c9f74c0-dcea-40ea-9b08-8538a45c9b7e.jpg

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ConnectorGit/HA-Connector/issues/3#issuecomment-924692948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2IMABY6CQZFOHHVGMVG53UDGGBLANCNFSM5CP6BHHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

nzamps commented 2 years ago

I use :

arp -an

on the LAN to find the IP (looking up the Bridge Mac address)

p2544 commented 2 years ago

Screenshot 2021-09-22 162430

p2544 commented 2 years ago

here is the vdo link describe my problem

https://youtu.be/fHcLDhBNftQ

p2544 commented 2 years ago

FYI, I got 2 server, raspi4 and intel nuc running, both have the same problem cannot see any entities in connector integration, it blank image

p2544 commented 2 years ago

BTW, connector working with google assistant voice is fine, also operate in the app is normal!

ConnectorGit commented 2 years ago

Please use EVAL TOOL to test whether Hub can be controlled normally https://github.com/ConnectorGit/EvalTool Because HA-Connector uses the UDP protocol, if UDP communication is prohibited in the local area network, it will affect the discovery of the device

sdavisnz commented 2 years ago

same problem, added intergration, but no entities.

sdavisnz commented 2 years ago

Capture1

sdavisnz commented 2 years ago

would you say this is looking like UDP is working or not working, no read-me for your application.

any port forwarding we need to enable on router?

ConnectorGit commented 2 years ago

Hub use 32100 port to send message,

  1. Maybe your router disable the UDP protocol
  2. Please reload the application. If the configuration is correct and the hub and application are in the same LAN, the device can be found udp
nzamps commented 2 years ago

I'm using HA Core core-2021.9.7 and it works for me....I deleted my Integration and re-added it so it can work.

Screen Shot 2021-09-23 at 6 10 58 PM

p2544 commented 2 years ago

here is the result, I got pi4 and intel nuc running in the same network, I didn't fix any UDP as your advise yet (just leave it a day/ night) . But Pi4 seem too see all the entities. What happen Can you tell me why this is so strange?? image

p2544 commented 2 years ago

ok now I trying to removing the blank integration in Intel NUC and reinstall again, now it work, thank you. so I just want to know that this is not involve in UDP protocol, doesn't it? image

frakki1986 commented 2 years ago

i've a similar issue.

The integration is working but does not get all my curtains. One is missing (i'm using 7 ERBS25-LE which all get recognized and 1 ERBS15-LE which is missing). Does anybody have the same problem?

ConnectorGit commented 2 years ago

i've a similar issue.

The integration is working but does not get all my curtains. One is missing (i'm using 7 ERBS25-LE which all get recognized and 1 ERBS15-LE which is missing). Does anybody have the same problem?

Please make sure that ERBS15-LE and ERBS25-LE are under the same hub, because the device list is obtained in the same message, and there will be no missing devices normally.

p2544 commented 2 years ago

working well almost 20 days, now all the button are disable, trying to remove integration and reinstall. It come back, got 5 blinds 1 or 2 blinds are working, 3 are dead. please tell me what happen?!

also remove again, reinstall the integration, only 1 blinds and hub are back none for the 4 blinds.

p2544 commented 2 years ago

just install 12 set of new motors for blinds, leave connector auto detect for a day, they found only 3 motors out of 12, is there any tip or how to get all 12 motors to my integration?

I already got 5 motors connected to connector and working well, now the new 12 motors only 3 can be detect.

image

mconaway2009 commented 2 years ago

just install 12 set of new motors for blinds, leave connector auto detect for a day, they found only 3 motors out of 12, is there any tip or how to get all 12 motors to my integration?

I already got 5 motors connected to connector and working well, now the new 12 motors only 3 can be detect.

image

Just to update this, i was sent this from the author today. I had the same issues. The connector integration did not find any devices. I used the Motion blinds integrations (https://www.home-assistant.io/integrations/motion_blinds) and it worked perfectly. The setup is the same. Reading the json file seems like this is either copied from that version or they used another file.

Hope it helps

p2544 commented 2 years ago

just install 12 set of new motors for blinds, leave connector auto detect for a day, they found only 3 motors out of 12, is there any tip or how to get all 12 motors to my integration? I already got 5 motors connected to connector and working well, now the new 12 motors only 3 can be detect. image

Just to update this, i was sent this from the author today. I had the same issues. The connector integration did not find any devices. I used the Motion blinds integrations (https://www.home-assistant.io/integrations/motion_blinds) and it worked perfectly. The setup is the same. Reading the json file seems like this is either copied from that version or they used another file.

Hope it helps

thanks @mconaway2009 I will remove connector and try the new integration "motion blinds" as your advise.

p2544 commented 2 years ago

@mconaway2009 just curious, does the app motion blinds need gateway, I only got the connector gateway at this moment.

mconaway2009 commented 2 years ago

I have the DD7002B bridge and 13 shades. All showed up. This process was the same, connect the IP and the API key from the about page and they instantly showed up. It does not carry over the names from the app so you have to rename them.

Tonyelo commented 2 years ago

Hi, hope everyone is doing fine.

I am having the same issue with connector. Worked fine for a few days then everything goes disabled. When I re-add the connector integration, nothing is showing up. I tried motion blinds, however I am getting an error message: "Unknown error occurred"

any suggestions?

Thank you!!!

Here is the trace of the error with motion blinds:

`Logger: aiohttp.server Source: components/motion_blinds/gateway.py:26 First occurred: 10:27:23 AM (4 occurrences) Last logged: 10:49:24 AM

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 98, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 157, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper result = await method(view, request, *args, *kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 252, in async_configure result = await self._async_handle_step(flow, cur_step["step_id"], user_input) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/usr/src/homeassistant/homeassistant/components/motion_blinds/config_flow.py", line 134, in async_step_connect if not await connect_gateway_class.async_connect_gateway(self._host, key): File "/usr/src/homeassistant/homeassistant/components/motion_blinds/gateway.py", line 39, in async_connect_gateway await self._hass.async_add_executor_job(self.update_gateway) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/motion_blinds/gateway.py", line 26, in update_gateway self.gateway_device.GetDeviceList() File "/usr/local/lib/python3.9/site-packages/motionblinds/motion_blinds.py", line 512, in GetDeviceList response = self._send(msg) File "/usr/local/lib/python3.9/site-packages/motionblinds/motion_blinds.py", line 390, in _send response = json.loads(data) File "/usr/local/lib/python3.9/json/init.py", line 341, in loads s = s.decode(detect_encoding(s), 'surrogatepass') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 321: invalid start byte

`

Tonyelo commented 2 years ago

Hello Again!. I fixed it! After debugging the python code I noticed that one of my blinds disappeared from my hub. I could not find it in the app. The error with both (connector and motion blinds) was because this orphan device was improperly stored. I managed to get this list of devices using the connector python code.

Screen Shot 2022-01-22 at 11 21 22

As you can see one of the devices was shown as \xff which cause the aforementioned trace. I fixed it by resetting the hub and adding everything from scratch.

p2544 commented 2 years ago

Do you mean if i reset the connector hub as a factory default and re-add blind one by one, it will work?

On Sat, Jan 22, 2022, 22:10 Tonyelo @.***> wrote:

Hello Again!. I fixed it! After debugging the python code I noticed that one of my blinds disappeared from my hub. I could not find it in the app. The error with both (connector and motion blinds) was because this orphan device was improperly stored. I managed to get this list of devices using the connector python code. [image: Screen Shot 2022-01-22 at 11 21 22] https://user-images.githubusercontent.com/13033685/150644100-4d2b157a-d5e9-4e07-8d92-8da93e792d5d.png

As you can see one of the devices was shown as \xff which cause the aforementioned trace. I fixed it by resetting the hub and adding everything from scratch.

— Reply to this email directly, view it on GitHub https://github.com/ConnectorGit/HA-Connector/issues/3#issuecomment-1019288616, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2IMACGFWAWEP7BOKJSLRLUXLCEPANCNFSM5CP6BHHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Tonyelo commented 2 years ago

Do you mean if i reset the connector hub as a factory default and re-add blind one by one, it will work?

Hi, if your problem is that entities are not showing after you add the connector integration or that motion blinds fails when trying to add integration, I think it might work.

In my case I tried to re-add one of my blinds and that broke the hub. That’s why resetting and re-add everything one by one worked.

i think if you don’t have that many blinds is worth the shot. And also I would suggest you use motion blinds it works much better.

p2544 commented 2 years ago

image unfortunately trying connector still not work, some blinds are ok, but some blinds are disable on up and down. also try motionblinds, the adding is quick but the up direction doesn't work, any idea?

Tonyelo commented 2 years ago

image unfortunately trying connector still not work, some blinds are ok, but some blinds are disable on up and down. also try motionblinds, the adding is quick but the up direction doesn't work, any idea?

Hi, I just noticed that the same happens on some of my blinds. In my case is happening only on a blind that has position control (percentage open). I have a couple up/stop/down blinds were I don't have the issue.

In my case I use HomeKit integration and it works flawlessly despite that is not working right on home-assistant. I figure it out I'll let you know. Good luck!