-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
How do I get Tradfri working again after upgrading to 0.55? #9752
Comments
Got the same problem, running HA on Ubuntu 16.04
Looks like HA is missing module aiocoap, |
I manually installed aiocoap (Debian 9). That got rid of that error, but now I have this:
I've rebuilt libcoap and tried to install tinydtls with pip - no luck. |
I've ran into the same error. Following commands from this script helped to fix the problem: https://github.com/home-assistant/home-assistant/blob/master/virtualization/Docker/scripts/aiocoap It also looks like |
I had the same issue, but now it's working again. Running on hassbian. In my case I had to install Cython as a prerequisite, which takes forever to install/compile on RPI2, 30 mins |
|
You need to have specific versions of tinydtls and aoicap installed. See this installation script for details. I couldn't install tinydtls on macOS without modifications, detailed in home-assistant-libs/pytradfri#64 |
Sorry folks, didn't realise we had installation instructions on the component page. I'll update the instructions shortly. |
I don't understand, will the tradfri component work with hass.io 0.55? |
@ceejii we ran into the same over here (although also python3.5->3.6 here yesterday) - but running the aforementioned script seems to fix it. Maybe wait a little or watch @lwis updates to the docs before upgrading |
home-assistant/home-assistant.io#3558 I believe @pvizeli has added support in hass.io. |
Hi
After server restart:
It doesn't give me any error during the installation.
|
Same here. followed the instructions. but the same error reappears:
|
@bram2202 |
I got the tradfri working again with some changes to this script: Script after my modifications:
|
Also the version of tinydtls specified in the script only works with Python 3.4.4+, which won't work for default Raspbian installation (Python 3.4.2). EDIT: upgrade to stretch may make it work :) |
@BrunoN17 |
@bram2202 |
@BrunoN17 yes, event after the install. tried a second time, everything was up to date. |
Same here :( |
This script worked for me.
Make sure you run it in the venv if that's how HASS is set up on your machine. |
@BrunoN17 tried it in venv, still no aiocoap |
After installation in the virtual environment I get:
|
Thanks @BrunoN17! Your lines worked for me! |
I'm using virtualenv to run hass and I modified the original script slightly to fit my workflow (I use Ansible to deploy hass to Raspbian)
The above script will first load virtualenv (in my case /srv/hass), then build and install tinydtls and aiocoap only when they are not present in the site-packages of the virtualenv. |
Hi: To solve the issue I follow these steps: Working fine again! |
My environment is Debian 9 and virtualenv.
|
Hi!
|
Having the same issue here have tried the fixes. I am running the latest hassbian and homeassistant 0.55
I can see in my python 3.5 folder i have tinydtls installed. |
I can't believe that this isn't fixed after a week. I'm stuck with 0.54.0. Did the developers are reading those issues? |
Still stuck at 0.54 because of this. If Is this is just a transition problem or a regression hope this will be fixed soon... |
I can’t believe your comment @VPNMASTER . Home assistant is a free softwear developed by people spending there free time without any payment. If you so badley need the issue to be sorted I recommend that you contribute with a solution your self instead of complaining. However, there is plenty of way to fix the issue if it’s a game changer for you to run 0.55 instead of 0.54 for a week or two. Maby not that convenient as you wish but there is ways! |
Hi folks,
|
@Nicxe Sorry, I didn't want to be rude. It made me nervous to try to install the new version and then rollback. Several times. And it's the lights component. The most important in automation. |
@VPNMASTER I have successfully installed 0.55 with working tradfri on a fresh install of both Hassbian and Hass.io. So if you desperately need 0.55 right now do a fresh install and copy over your config files |
As @javefang mentioned, Raspbian Jessie with its So I upgraded to Raspbian Stretch with python-3.5.3 and ran the commands in After that, I then upgraded to With this |
version 0.56 is not working for me. When I try and run pytradfri directly. I get error with pytradfri home-assistant-libs/pytradfri#72 I did try installing DTLSSocket==0.1.3 and pip3 install cython directly however didn't seem to help. pytradfri 2.2.3 works for me but I think hass reinstalls pytradfri 3.0.2 on start |
@tactmaster what's the error you're seeing in HA? We don't use libcoap in HA, so the issue raised (albeit valid) can't be relevant to the issue you're seeing in HA. |
tinydtls is installed via
|
You shouldn't install anything other than cython, the component installs everything for you. |
Well apologies , obvious something has got mess up with the dependency on in my venv on my system. I set up a new venv (https://home-assistant.io/docs/installation/virtualenv/) using the same setting. It worked perfectly, 👍 |
Good stuff 👍 |
Still no luck with this. After upgrading to any version > 0.54.0 Ikea Tradfri component stops working. Note: the python version in my virtualenv is 3.5.3 |
For the moment there the new firmware to IKEA´s gateway are causing home assistant to stop working with Trådfri. The developers have just completed the fix that will be integrated in 0.57 that releases this weekend. So you can try and try but in would not work until the next release. |
@Nicxe I've tried all this before the gateway firmware upgrade. PS. Any chance to remove the cython/libcoap/tinydtls binary requirements? Ideally a pure-python package to manage all Tradfri components will avoid all these issues! |
@fabfurnari libcoap is only a requirement if you're using the lib directly in a sync way. cython is a dependency of DTLSSocket, and pyDTLS doesn't support Python 3 due to some outstanding bugs in the Python TLS stack. Basically, these were not choices. |
@lwis thanks for clarification. Do you think the new turn in hass involvement with official Ikea Tradfri team will lead some benefit for this particular scenario? |
It's unlikely, but good to know they are aware people are using the coap
API.
…On Thu, 2 Nov 2017, 8:34 pm Fabrizio Furnari, ***@***.***> wrote:
@lwis <https://github.com/lwis> thanks for clarification. Do you think
the new turn in hass involvement with official Ikea Tradfri team will lead
some benefit for this particular scenario?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9752 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA1TO_t4rWTfUXj4j6QFIsyrkviOBNfyks5syidMgaJpZM4Pxn63>
.
|
Hi. struggling with this also... after fw upgrade on tradfri gateway. Also tried using examply_sync.py from this location and could not make it work.
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Closing this as there have been no updates since last November. Please open a new issue if this issue persists. |
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
0.55
):Python release (
3.5.3
):Component/platform: Ubuntu 17.04
Description of problem:
I see "[light.tradfri] async support with resource observation. (@lwis - #7815) (tradfri docs) (light.tradfri docs) (breaking change)" in the release note for 0.55
But how do I fix so Tradfri starts working after upgrading?
I followed the installation instructions in https://home-assistant.io/components/tradfri/ again. (hade to rename the libcoap directory.
But I still get the message:
The following components and platforms could not be set up:
tradfri
Please check your config
What should I do?
Expected:
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
Additional info:
The text was updated successfully, but these errors were encountered: