Home Assistant auto discovers the gateway of the Ikea tradfri but gives an error (unable to connect) when i fill in the password for that gateway. Even if i manually add the gateway in the configuration.yaml it does not work. I already reset the gateway (with the reset-hole).
I am able to switch the lights (ikea-bulbs) on/off using a python-script. So the connection is ok.
(no typos!)
Any hints?
ps: my OS is “Dietpi” and it is running on a “Orange Pi plus”. I upgrade HomeAssistant all the time.
Uptill now my tradfri has never been configured/detected correctly in HA. I tried it all (auto detect, manually add in configuration.yaml, carefully checked the config for typos/spaces, reset the tradfri-gateway…)
All is updated (gateway/HA)
?
ps: i bought the tradfri gateway and remote/bulbs in 2017.
So you have updated to the latest HA version that has been released November 5th?
With that version you should be able to connect to tradfri again. I disabled tradfri (ikea_tradfri) in the discovery section of my configuaration.yaml. Then I added the gateway manually to the file (important: don’t hard code the security key into you configuration file any more). Then you should see a card which asks you for your security code and after that you should be connected.
I have removed, and made HA auto detect the tradfri, many times. At first (weeks ago) i got the inquiry in HA to input the api-code. (never worked) Later on, this inquiry never showed up again. Only the message: Invalid Config.
perhaps i am misunderstandig your meaning. I have no tradfri section in the configuration.yaml file (right now). HA gives the error: Invalid Config. I also have no tradfri,conffile (never had that file). Do you mean that i should make make/edit that file?
I have also tested a tradfri section in the configuration.yaml file with no success. (i know that i should only add ip)
Can you give me an example of your tradfri.conf file (if you have one. My nest-device has such a conf-file so i assume that HA will generate such a file automatically)
I installed the homeassistant on my windows pc and got the same result. I have covered all the bases i think (reset gateway the correct way, everything is up to date) I am wondering now if maybe the grouping of the light bulbs could somehow be the cullprit. ( i know about the extra config line for groups in the tradfri-section of configuration.yaml) Or perhaps the problem lies in the python-version. But than i don’t understand why i am able to switch on/off the bulbs with python-script. (in a terminal that runs on the same SBC as HomeAssistant)
Did you make an IP address reservation in your router so the Tradfri gateway always gets the same IP address?
Till yesterday the Tradfri lights worked well in HA 0.54 in a virtual environment with Raspbian Jessie and now I am running it in HA 0.57.2 in a virtual environment with Raspbian Stretch. Python version is 3.5 and everything works very well.
I just wanted to mentioned that Tradfri still won’t play nice with the HomeAssistant. (not “manually” in configuration.yaml and not on “auto detect”)
In the mean time i updated my python and i installed the coap-client/ikea-smartlight so that i can automate on/off (in cron) of the ikea-light bulbs (works!).
In order to acces the gateway from my linux-box i had to get a pre-shared key from the gateway. After that i mananged to use coap & bash to automate stuf.
ps: i am wondering how HA does that (getting the preshared key…) ??