-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug - Addon and lights don't load #82
Comments
So I just booted up a new HomeAssistant VM, loaded nothing but this addon and it worked with the same username and password that i'm trying to use on my main build. |
Do you have any logs. |
Log Details (ERROR) Error during setup of component sengledapi During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Logger: homeassistant.util.async_ Detected blocking call to putrequest inside the event loop. This is causing stability issues. Please report issue to the custom integration author for sengledapi doing blocking calls at custom_components/sengledapi/sengledapi/devices/request.py, line 40: r = requests.post(self._url, headers=self._header, data=self._payload) |
Let me know if those aren't the right ones, thank you very much for the response and help. |
So it's might take time for me look at this. I don't use home assistant anymore. So in the past when I have seen this issue it with this call below. And normally it because of the username and password. The blocking part is because we are not call async get response, but could be because we are not getting the correct response from the do request. I will look into this more. -`def get_response(self, jsession_id):
` #######################Do request#######################################################
|
I looked through other issues and saw that your recommendation was to check the user name and password. I've reset the password a few times already with no luck. That's why I tried the addon in a fresh VM and it worked as expected. What do you use now if you don't use HA if you don't mind me asking? |
I have moved away from Sengled and I am using wyze. For the platform I am using Homebridge. I found that I don't need all the other features that home assistant has to offer. |
Seeing this also. Let me know if you come up with a fix - more than happy to test it. |
I was getting a similar error today. Two things I did was added
From this I was looking back through the recent closed issues and stumbled on #77 talking about hundreds of DNS requests. As I too run pihole I checked and sure enough had the same issue with hundreds of requests. I tried the comment in there are adjusted SCAN_INTERVAL to 30, and restarted and all is working. I think we may be getting blocked by a rate limiter. |
@KevinBodwell That's great news, thanks for sharing a fix man! Can you help with where you put trust_env=true? I'm stuck on what file to modify and where to place it in the code. |
So I've got mine working again, i did three things simultaneously so unsure which one did the trick. I changed the password again in the IOS app, and I changed the dns on the router to Quad9 instead of Adguard. I also capitalized the country in the .yaml config I suspect the Adguard was the trick, but it's working at the moment. |
Wanted to share for anyone looking for a fix now or in the future, I was able to link Sengled with Smarthings, with no Smarthings hub and pull them into Homeassistant flawlessly. |
How did you link via SmartThings? Sengled hub is not listed. |
Describe the bug
Addon has been running great, thanks for making this, it's a lifesaver. But now the light don't load and I get errors.
To Reproduce
Steps to reproduce the behavior:
HACs or manual install of sengled api
Expected behavior
To work like it always has
System configuration
RPi
Home Assistant 2022.8.6
Supervisor 2022.11.2
Operating System 8.5
Frontend 20220802.0 - latest
Latest Master
configuration.yaml
sengledapi:
username:
password:
country: us
wifi: true
home-assistant.log
The text was updated successfully, but these errors were encountered: