Closed Lakitna closed 6 years ago
I haven't experienced any changes more than the constants that I've added through the last two pull requests.
Does pytradfri work with 1.3.14?
I just installed everything as you say to and run: python3 -i -m pytradfri IP KEY
Output:
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.0.xxx post ['15011', '9063']: {'9090': 'pytradfri'}
DEBUG:pytradfri.api.libcoap_api:Received:
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.4/dist-packages/pytradfri/main.py", line 26, in
lights Traceback (most recent call last): File "
", line 1, in NameError: name 'lights' is not defined
@av4625 it should, there are no changes in the gateways communication methods. Also, I tried it yesterday and it worked. If you're using stand-alone pytradfri, can you please downloading the latest version from pypi and try again?
This was straight after setting up, my first try, i installed pytradfri from pip
Is the error because: 192.168.0.xxx post ['15011', '9063']: {'9090': 'pytradfri'} Gets executed more than once?
Anytime I manually send the coap command to get the shared key more than once using the same string (pytradfri in this case) it doesnt work and returns 4.00 or 4.01
Are you sure you're running the latest version of Pytradfri? I believe the latest version doesn't identify itself as "pytradfri" anymore, it uses a random string instead.
If you've installed pytradfri as a part of home assistant you won't have the latest version. Please use pip to upgrade (knowing this will break trådfri in home assistant.)
I dont use home assisstant. I installed with pip (previous comment)
This is what I'm getting when running in CLI against the new router:
root@ggravlingen:/usr/src/app# python3 -i -m pytradfri 192.168.0.129 key
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.0.129 get ['15001']
DEBUG:pytradfri.api.libcoap_api:Received: [65540,65536,65538,65539,65537,65541]
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.0.129 get ['15001', 65540]
What's more I have this in my tradfri_standalone.psk:
{
"192.168.0.129": {
"identity": "91b0de2ae2404304984525b687fdc15d",
"key": "PSK"
}
}
Other than the separate (unrelated) issue on GU-lamps, pytradfri seems to work with the new GW firmware. Closing this issue.
Doesnt seem to work standalone following your instructions in the readme.
Do the examples run in the latest pytradfri (5.2.1)?
So Ikea recently updated their Gateway software with the following changelog:
I don't think it will change anything for Pytradfri, but it's a good idea to think about it a bit. Anyone any thoughts or issues?