Hi Guys,
Almost got it to work, followed all the tutorials.
Plugin seems to work:
pi@RPI1_02:~/domoticz/plugins/IKEA-Tradfri $ python3 tradfri.tac
:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named 'cryptography.x509''. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
IKEA-tradfri COAP-adaptor version 0.6 started (command line)!
Connected from IPv4Address(type='TCP', host='127.0.0.1', port=36496)
Data received: b'{"identity": "MY-identity", "groups": "False", "pollinterval": "5", "observe": "True", "psk": "My-Psk", "gateway": "My-IP", "action": "setConfig"}'
Initializing gateway
Data received: b'{"action": "getLights"}'
{"status": "Ok", "result": [{"DeviceID": 65537, "Type": "Light", "Name": "TRADFRI bulb E27 CWS opal 600lm", "Dimmable": true, "HasRGB": true, "HasWB": false}], "action": "getLights"}
{'status': 'Ok', 'result': [{'Level': 1, 'DeviceID': 65537, 'State': False, 'Hex': 'da5d41', 'Name': 'TRADFRI bulb E27 CWS opal 600lm'}], 'action': 'deviceUpdate'}
It connects and sees my lamp...
But Domotics can't connect:
2018-09-10 16:46:43.581 (IKEA Tradfri) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-09-10 16:46:43.582 (IKEA Tradfri) Device has disconnected
2018-09-10 16:46:49.596 (IKEA Tradfri) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-09-10 16:46:49.596 (IKEA Tradfri) Device has disconnected
2018-09-10 16:46:55.608 (IKEA Tradfri) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-09-10 16:46:55.608 (IKEA Tradfri) Device has disconnected
2018-09-10 16:47:01.621 (IKEA Tradfri) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-09-10 16:47:01.622 (IKEA Tradfri) Device has disconnected
2018-09-10 16:47:07.634 (IKEA Tradfri) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-09-10 16:47:07.634 (IKEA Tradfri) Device has disconnected
2018-09-10 16:47:13.597 (IKEA Tradfri) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-09-10 16:47:13.597 (IKEA Tradfri) Device has disconnected
2018-09-10 16:47:19.612 (IKEA Tradfri) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
What am I missing?
Ikea Trådfri Gateway plugin problem
Moderator: leecollings
-
- Posts: 10
- Joined: Friday 17 July 2015 10:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Ikea Trådfri Gateway plugin problem
I was missing the right ownner-ship
It is installed in /home/pi/domo... as user root.
but domoticz runs under user pi
chown -R pi.pi * did the trick.
It is installed in /home/pi/domo... as user root.
but domoticz runs under user pi
chown -R pi.pi * did the trick.
Who is online
Users browsing this forum: No registered users and 1 guest