Page 47 of 48
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Tuesday 02 February 2021 10:30
by Ivo1986
Code: Select all
pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ python3 plugin.py config gw 192.168.178.... Key
{'Status': 'HandshakeError', 'Result': ''}
Connection timed out
What can I do to solve this?
Ip and key are correct
Code: Select all
pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ python3 plugin.py version
IKEA Tradfri Plugin: 0.10.6
Tradfricoap: 0.0.17
Py3coap: 0.9.2
coapcmd: (/home/pi/domoticz/plugins/IKEA-Tradfri/bin/coapcmd) 0.1.7
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Sunday 07 February 2021 20:20
by Dickey
Have the same problem. IP and KEY are fine.
root@raspberrypi:/home/pi/domoticz/plugins/IKEA-Tradfri# python3 plugin.py config gw 192.168.1.56 Key
{'Status': 'HandshakeError', 'Result': ''}
Connection timed out
root@raspberrypi:/home/pi/domoticz/plugins/IKEA-Tradfri# python3 plugin.py version
IKEA Tradfri Plugin: 0.10.6
Tradfricoap: 0.0.17
Py3coap: 0.9.2
coapcmd: (/home/pi/domoticz/plugins/IKEA-Tradfri/bin/coapcmd) 0.1.7
Anyone with idea's?
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Monday 08 February 2021 14:37
by Dickey
Dickey wrote: ↑Sunday 07 February 2021 20:20
Have the same problem. IP and KEY are fine.
I was very sure about it, but.... wrong.
Read the QR code and mailed me the link. a "I" must be a "l".



Problem solved.
Everything works as a charm.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Saturday 13 February 2021 10:02
by Ivo1986
My ip and key are correct.
My pi zero (slave) have the Ikea running
My pi4 (master) has the connection error.
Remote device does not work with the IKEA plugin

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Tuesday 23 February 2021 17:03
by Sarcas
Argh!
All my Ikea devices disappeared and then reappeared after a reboot. But as new devices, with new idx numbers. I have to edit a lot of scripts

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Friday 26 February 2021 22:01
by moroen
Sarcas wrote: ↑Tuesday 23 February 2021 17:03
Argh!
All my Ikea devices disappeared and then reappeared after a reboot. But as new devices, with new idx numbers. I have to edit a lot of scripts
Hm, that error should have been fixed, are you using the latest versions?
Regards,
M
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Saturday 20 March 2021 10:31
by Sarcas
moroen wrote: ↑Friday 26 February 2021 22:01
Hm, that error should have been fixed, are you using the latest versions?
Regards,
M
[/quote]
Sorry, missed the reply-notification. I believe I am using the latest version(s). I regularly check for updates. It has not happened again btw.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Saturday 20 March 2021 16:07
by moroen
Sarcas wrote: ↑Saturday 20 March 2021 10:31
moroen wrote: ↑Friday 26 February 2021 22:01
Hm, that error should have been fixed, are you using the latest versions?
Regards,
M
Sorry, missed the reply-notification. I believe I am using the latest version(s). I regularly check for updates. It has not happened again btw.
[/quote]
On one side, it's good that it hasn't happened again, on the other, such intermittent errors are notoriously difficult to hunt down and fix... Let me know if it happens again, and any information you can provide about the circumstances when it happens, would be extremely helpfull!
Regards,
M
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Thursday 08 April 2021 21:52
by Sarcas
Argh. It happened again.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Monday 12 April 2021 16:21
by Sarcas
I really keep struggling with this plugin. It works for a while and then these errors appear. And IKEA becomes unresponsive. Also when I disable other hardware/python scripts. Running on a rPi with buster, everything updated.
Code: Select all
IKEA Tradfri Plugin: 0.10.6
Tradfricoap: 0.1.0
Py3coap: 0.9.2
coapcmd: Not found (Looking for /home/pi/domoticz/plugins/IKEA-Tradfri/bin/coapcmd).
Code: Select all
2021-04-12 16:01:40.465 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:01:54.468 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:02:08.474 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:02:22.478 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:02:36.480 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:02:50.483 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:03:04.486 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:03:18.490 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:03:32.498 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:03:46.531 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:04:00.563 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:04:14.582 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:04:28.585 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:04:42.588 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:04:56.604 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:05:11.631 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:05:25.636 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:05:39.640 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:05:53.648 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:06:07.651 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:06:21.654 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:06:35.660 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:06:49.664 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:06:49.664 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:07:03.683 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:07:17.687 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:07:31.690 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:07:45.694 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:07:59.697 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:08:13.707 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:08:27.729 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:08:41.739 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:08:55.751 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:09:09.756 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:09:23.762 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:09:23.762 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:09:51.774 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:09:51.774 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:10:06.605 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:10:06.605 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:10:20.611 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:10:20.611 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:10:34.615 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:10:34.615 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:10:48.618 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:11:02.621 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:11:16.638 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:11:30.644 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:11:44.648 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:11:44.652 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:11:58.655 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:11:58.655 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:12:12.658 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:12:12.658 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:12:26.664 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:12:26.664 Error: Python Plugins Manager hardware (21) thread seems to have ended unexpectedly
2021-04-12 16:12:40.674 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:12:54.687 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:13:08.690 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:13:22.693 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:13:36.697 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
2021-04-12 16:13:50.700 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Monday 12 April 2021 21:11
by moroen
Sarcas wrote: ↑Monday 12 April 2021 16:21
I really keep struggling with this plugin. It works for a while and then these errors appear. And IKEA becomes unresponsive. Also when I disable other hardware/python scripts. Running on a rPi with buster, everything updated.
Code: Select all
IKEA Tradfri Plugin: 0.10.6
Tradfricoap: 0.1.0
Py3coap: 0.9.2
coapcmd: Not found (Looking for /home/pi/domoticz/plugins/IKEA-Tradfri/bin/coapcmd).
Code: Select all
2021-04-12 16:01:40.465 Error: IKEA plugin hardware (20) thread seems to have ended unexpectedly
I think I've said this before, but a PI isn't quite powerfull enough for the plugin in it's current form, the more devices you have and the more other plugins you're running, the more likely it its for this error to occur. I've tried to optimize it as much as possible, but it's still too heavy for a PI. I'm working on a completely new version of the plugin, which should be much less demanding and support propper observations...
Regards,
M
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Tuesday 13 April 2021 11:55
by Sarcas
True, you said it before. I’m being stubborn. I’m running on a rPi 3 Model B Rev 1.2, so it is not that fast. Would upgrading to a rPi 4 be an option for me?
S.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Tuesday 18 May 2021 19:55
by Sarcas
I migrated my Domoticz to a new rPi4. Unfortunately it did not solve the problem. It seems to happen less frequent though. I am trying to figure out how to restart domoticz when the errors appear until your new version comes out
S.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Sunday 13 June 2021 12:35
by Sarcas
Despite the known error things have been rather stable the last weeks. I have the plugin restarting if there isn’t any activity for a while, and Monit restarts Domoticz or the rPi4 itself if more severe problems occur. The last two or three days I notice more frequent crashes. Monit takes care of the restart, so I am just sharing here:
Code: Select all
2021-06-13 12:00:10.479 (IKEA plugin) Processing 'onCommandCallback' message
2021-06-13 12:00:10.479 IKEA plugin: (IKEA plugin) Calling message handler 'onCommand'.
2021-06-13 12:00:10.479 IKEA plugin: (IKEA plugin) onCommand called for Unit 9: Parameter 'Off', Level: 99
2021-06-13 12:00:12.498 IKEA plugin: (IKEA plugin) Finnished command
2021-06-13 12:00:12.498 (IKEA plugin) Processing 'onCommandCallback' message
2021-06-13 12:00:12.498 IKEA plugin: (IKEA plugin) Calling message handler 'onCommand'.
2021-06-13 12:00:12.498 IKEA plugin: (IKEA plugin) onCommand called for Unit 10: Parameter 'Off', Level: 0
2021-06-13 12:00:12.513 IKEA plugin: (IKEA plugin) Finnished command
2021-06-13 12:00:12.513 (IKEA plugin) Processing 'onCommandCallback' message
2021-06-13 12:00:12.513 IKEA plugin: (IKEA plugin) Calling message handler 'onCommand'.
2021-06-13 12:00:12.513 IKEA plugin: (IKEA plugin) onCommand called for Unit 20: Parameter 'Off', Level: 99
2021-06-13 12:00:12.529 IKEA plugin: (IKEA plugin) Finnished command
2021-06-13 12:00:12.529 (IKEA plugin) Processing 'onCommandCallback' message
2021-06-13 12:00:12.529 IKEA plugin: (IKEA plugin) Calling message handler 'onCommand'.
2021-06-13 12:00:12.529 IKEA plugin: (IKEA plugin) onCommand called for Unit 2: Parameter 'Off', Level: 99
2021-06-13 12:00:12.544 IKEA plugin: (IKEA plugin) Finnished command
2021-06-13 12:00:12.544 (IKEA plugin) Processing 'onCommandCallback' message
2021-06-13 12:00:12.544 IKEA plugin: (IKEA plugin) Calling message handler 'onCommand'.
2021-06-13 12:00:12.544 IKEA plugin: (IKEA plugin) onCommand called for Unit 3: Parameter 'Off', Level: 0
2021-06-13 12:00:14.561 IKEA plugin: (IKEA plugin) Finnished command
2021-06-13 12:00:14.561 (IKEA plugin) Processing 'onCommandCallback' message
2021-06-13 12:00:14.561 IKEA plugin: (IKEA plugin) Calling message handler 'onCommand'.
2021-06-13 12:00:14.562 IKEA plugin: (IKEA plugin) onCommand called for Unit 4: Parameter 'Off', Level: 99
2021-06-13 12:00:14.577 IKEA plugin: (IKEA plugin) Finnished command
2021-06-13 12:00:14.577 (IKEA plugin) Processing 'onCommandCallback' message
2021-06-13 12:00:14.577 IKEA plugin: (IKEA plugin) Calling message handler 'onCommand'.
2021-06-13 12:00:14.577 IKEA plugin: (IKEA plugin) onCommand called for Unit 5: Parameter 'Off', Level: 0
2021-06-13 12:00:14.586 Error: Domoticz(pid:623, tid:713('IKEA plugin')) received fatal signal 6 (Aborted)
2021-06-13 12:00:14.588 Error: siginfo address=0x26f, address=(nil)
2021-06-13 12:00:18.104 Error: Thread 29 (Thread 0xa6d4d220 (LWP 713)):
2021-06-13 12:00:18.104 Error: #0 __waitpid (options=0, stat_loc=0x760094a0, pid=2598) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2021-06-13 12:00:18.104 Error: #1 __waitpid (pid=2598, stat_loc=0x760094a0, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
2021-06-13 12:00:18.104 Error: #2 0x002846b4 in dumpstack_gdb(bool) ()
2021-06-13 12:00:18.104 Error: #3 0x00284c80 in signal_handler(int, siginfo_t*, void*) ()
2021-06-13 12:00:18.104 Error: #4 <signal handler called>
2021-06-13 12:00:18.104 Error: #5 raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:50
2021-06-13 12:00:18.105 Error: #6 <signal handler called>
2021-06-13 12:00:18.105 Error: #7 runtime.raise () at /usr/lib/go-1.11/src/runtime/sys_linux_arm.s:147
2021-06-13 12:00:18.105 Error: #8 0xa6dcaf80 in runtime.dieFromSignal (sig=6) at /usr/lib/go-1.11/src/runtime/signal_unix.go:424
2021-06-13 12:00:18.105 Error: #9 0xa6dcb128 in runtime.crash () at /usr/lib/go-1.11/src/runtime/signal_unix.go:518
2021-06-13 12:00:18.105 Error: #10 0xa6db4b80 in runtime.fatalpanic (msgs=<optimized out>) at /usr/lib/go-1.11/src/runtime/panic.go:708
2021-06-13 12:00:18.105 Error: #11 0xa6db45a0 in runtime.gopanic (e=...) at /usr/lib/go-1.11/src/runtime/panic.go:556
2021-06-13 12:00:18.105 Error: #12 0xa6db3590 in runtime.panicmem () at /usr/lib/go-1.11/src/runtime/panic.go:82
2021-06-13 12:00:18.105 Error: #13 0xa6dcada8 in runtime.sigpanic () at /usr/lib/go-1.11/src/runtime/signal_unix.go:390
2021-06-13 12:00:18.105 Error: #14 0xa6e7dad8 in github.com/moroen/dtls.sweeper (l=0x0) at /tmp/tmp1c9c662l/src/github.com/moroen/dtls/dtls.go:133
2021-06-13 12:00:18.105 Error: #15 0x00000008 in ?? ()
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Tuesday 15 June 2021 21:39
by moroen
Sarcas wrote: ↑Sunday 13 June 2021 12:35
Despite the known error things have been rather stable the last weeks. I have the plugin restarting if there isn’t any activity for a while, and Monit restarts Domoticz or the rPi4 itself if more severe problems occur. The last two or three days I notice more frequent crashes. Monit takes care of the restart, so I am just sharing here:
Code: Select all
2021-06-13 12:00:14.586 Error: Domoticz(pid:623, tid:713('IKEA plugin')) received fatal signal 6 (Aborted)
2021-06-13 12:00:14.588 Error: siginfo address=0x26f, address=(nil)
2021-06-13 12:00:18.104 Error: Thread 29 (Thread 0xa6d4d220 (LWP 713)):
2021-06-13 12:00:18.104 Error: #0 __waitpid (options=0, stat_loc=0x760094a0, pid=2598) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2021-06-13 12:00:18.104 Error: #1 __waitpid (pid=2598, stat_loc=0x760094a0, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
2021-06-13 12:00:18.104 Error: #2 0x002846b4 in dumpstack_gdb(bool) ()
2021-06-13 12:00:18.104 Error: #3 0x00284c80 in signal_handler(int, siginfo_t*, void*) ()
2021-06-13 12:00:18.104 Error: #4 <signal handler called>
2021-06-13 12:00:18.104 Error: #5 raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:50
2021-06-13 12:00:18.105 Error: #6 <signal handler called>
2021-06-13 12:00:18.105 Error: #7 runtime.raise () at /usr/lib/go-1.11/src/runtime/sys_linux_arm.s:147
2021-06-13 12:00:18.105 Error: #8 0xa6dcaf80 in runtime.dieFromSignal (sig=6) at /usr/lib/go-1.11/src/runtime/signal_unix.go:424
2021-06-13 12:00:18.105 Error: #9 0xa6dcb128 in runtime.crash () at /usr/lib/go-1.11/src/runtime/signal_unix.go:518
2021-06-13 12:00:18.105 Error: #10 0xa6db4b80 in runtime.fatalpanic (msgs=<optimized out>) at /usr/lib/go-1.11/src/runtime/panic.go:708
2021-06-13 12:00:18.105 Error: #11 0xa6db45a0 in runtime.gopanic (e=...) at /usr/lib/go-1.11/src/runtime/panic.go:556
2021-06-13 12:00:18.105 Error: #12 0xa6db3590 in runtime.panicmem () at /usr/lib/go-1.11/src/runtime/panic.go:82
2021-06-13 12:00:18.105 Error: #13 0xa6dcada8 in runtime.sigpanic () at /usr/lib/go-1.11/src/runtime/signal_unix.go:390
2021-06-13 12:00:18.105 Error: #14 0xa6e7dad8 in github.com/moroen/dtls.sweeper (l=0x0) at /tmp/tmp1c9c662l/src/github.com/moroen/dtls/dtls.go:133
2021-06-13 12:00:18.105 Error: #15 0x00000008 in ?? ()
I would guess it has something to do with network latency and timeouts...
Due to life commitments, the new, rewritten version has taken longer than anticipated...

Progress is slow, but steady and it`s getting near a pre-release, testing stage. If you or someone else would be willing to help with testing, it would be much appreciated.

Unfortunately, it`s a "breaking change", so tradfri devices have to be added to domoticz from scratch.
The new version is based on MQTT, and demands quite a lot less of Domoticz than the current version, so hopefully "Thread has ended unexpectedly" will be a thing of the past. All the "heavy lifting" is done by a tradfrimqtt service, and if the service goes "belly up" for some reason or another, at least it will not bring down Domoticz as a whole. The service will be available either as a docker image or local install.
Regards,
M
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Wednesday 16 June 2021 9:17
by Sarcas
Ah yes, life commitments, don't get me started
I'll see if I can keep an eye on the latency. I got myself an zigbee usb stick, but it is still in its box and I haven't been able to find time to install it. One day...
Meanwhile I'd be happy to test stuff out. I don't mind re-adding my devices a couple of times if I can help. No hurry
Regards
S.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Saturday 17 July 2021 15:17
by GilYs
Hello there,
I am a beginner with both the Moroen plugin and Domoticz.
I installed Domoticz on Windows 10 20H2 (x64) as a test.
Version :
Domoticz: Version: 2021.1
Python (32b): 3.9.6
Git and Go installed and updated
I installed the plugin as follows:
- From GIT: git clone
https://github.com/moroen/IKEA-Tradfri-plugin.git IKEA-Tradfri
- Update tools:
Code: Select all
pip3 install -U pip
pip3 install -U setuptools
- Tradfricoap
-Coapcmd :
- Config to use copacmd (note on my machine it is Python instead Python3)
Code: Select all
python plugin.py config api coapcmd
- Check the version:
Code: Select all
python plugin.py version:
IKEA Tradfri Plugin: 0.10.7
Tradfricoap: 0.1.0
Py3coap: Not found
coapcmd: (C:\Program Files (x86)\Domoticz\plugins\IKEA-Tradfri/bin/coapcmd.exe) 0.1.7
- Add gateway:
Code: Select all
python plugin.py config gw <IP> < KEY>
- Check the gtw config
Code: Select all
python plugin.py config
{
"Gateway": "192.168.1.69",
"Identity": "somecharacters",
"Passkey": "somecharacters",
"Verbosity": 0,
}
python plugin.py list
Lights:
65539: pregnant (State: 0 - Level: 55 - Hex: f1e0b5)
65543: Saint Raphael (State: 1 - Level: 254 - Hex: f1e0b5)
65544: Charlie Parker (State: 0 - Level: 55 - Hex: f1e0b5)
Groups:
131073: SuperGroup
131075: SleepingAndEatingRoom
Batteries:
65538: TRADFRI remote control (State: None - Level: None - Hex: None)
Other:
65538: TRADFRI remote control (State: None - Level: None - Hex: None)
- From the Domoticz page, add the hardware as 'IKEA Tradfri Plugin - version 0.10.7' type with this parameters:
Add groups as devices: yes
Monitor change: Poll
polling interval: 20 (just for dbg)
Monitor batteries : On value
Transition time: 10
Debug : true
-> from devices tab, devices are not created.
From the logs, all wotks fine (i assume):
Code: Select all
2021-07-17 15:04:40.379 IkeaGateway hardware started.
2021-07-17 15:04:40.628 IkeaGateway: (IkeaGateway) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2021-07-17 15:04:40.628 IkeaGateway: (IkeaGateway) Monitor changes method: poll
2021-07-17 15:04:40.379 Status: IkeaGateway: (IkeaGateway) Entering work loop.
2021-07-17 15:04:40.379 Status: IkeaGateway: (IkeaGateway) Started.
2021-07-17 15:04:40.627 Status: IkeaGateway: (IkeaGateway) Initialized version 0.10.7, author 'moroen'
Not sure where i need to investigate and some help would much appreciated.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Saturday 17 July 2021 15:42
by Sarcas
Is in "Domoticz settings" → "Hardware/Devices:
Accept new Hardware Devices" enabled?
If not, enable it and restart the plugin or domoticz.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Saturday 17 July 2021 17:48
by GilYs
Thanks Sarcas for your quick answers but yes "Accept new Hardware Devices" is enabled.
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Monday 19 July 2021 13:11
by moroen
GilYs wrote: ↑Saturday 17 July 2021 17:48
Thanks Sarcas for your quick answers but yes "Accept new Hardware Devices" is enabled.
As far as I can tell, the plugin looks to be installet correctly. Enable debug for the plugin, it might give some clue to why the devices aren't added...
Regards,
M