Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Friday 17 November 2017 21:29
Coap client v.0.4
Gateway Firmware just updated v.1.2.42
I run domoticz v3.8153
BTW, when i do
sudo service Ikea-tradfri statut
i get this error
ikea-tradfri.service - IKEA Tradfri COAP-adapter
Loaded: loaded (/lib/systemd/system/ikea-tradfri.service; enabled; vendor pre
Active: failed (Result: exit-code) since Fri 2017-11-17 18:45:45 CET; 21s ago
Process: 19395 ExecStart=/usr/local/bin/twistd --nodaemon --rundir=${IKEA_HOME
Main PID: 19395 (code=exited, status=217/USER)
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Unit entered fail
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Failed with resul
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Service hold-off
nov. 17 18:45:45 raspberrypi systemd[1]: Stopped IKEA Tradfri COAP-adapter.
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Start request rep
nov. 17 18:45:45 raspberrypi systemd[1]: Failed to start IKEA Tradfri COAP-adapt
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Unit entered fail
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Failed with resul
but when i do
pi@raspberrypi:~ $ cd /home/pi/domoticz/plugins/IKEA-Tradfri
pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ /usr/local/bin/twistd -n -y tradfri.tac
I get
Removing stale pidfile /home/pi/domoticz/plugins/IKEA-Tradfri/twistd.pid
2017-11-17T21:26:47+0100 [-] Removing stale pidfile /home/pi/domoticz/plugins/IKEA-Tradfri/twistd.pid
2017-11-17T21:26:47+0100 [-] Loading tradfri.tac...
2017-11-17T21:26:49+0100 [-] Loaded.
2017-11-17T21:26:49+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] twistd 17.9.0 (/usr/bin/python3 3.5.3) starting up.
2017-11-17T21:26:49+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] reactor class: twisted.internet.epollreactor.EPollReactor.
2017-11-17T21:26:49+0100 [-] AdaptorFactory starting on 1234
2017-11-17T21:26:49+0100 [builtins.AdaptorFactory#info] Starting factory <AdaptorFactory object at 0xb6057930>
^C2017-11-17T21:27:05+0100 [-] Received SIGINT, shutting down.
2017-11-17T21:27:05+0100 [-] (TCP Port 1234 Closed)
2017-11-17T21:27:05+0100 [builtins.AdaptorFactory#info] Stopping factory <AdaptorFactory object at 0xb6057930>
2017-11-17T21:27:05+0100 [-] Main loop terminated.
2017-11-17T21:27:05+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] Server Shut Down.
I did change the pathin the ikea-tradfri.serice by changing /opt/... by /home/pi/...
Gateway Firmware just updated v.1.2.42
I run domoticz v3.8153
BTW, when i do
sudo service Ikea-tradfri statut
i get this error
ikea-tradfri.service - IKEA Tradfri COAP-adapter
Loaded: loaded (/lib/systemd/system/ikea-tradfri.service; enabled; vendor pre
Active: failed (Result: exit-code) since Fri 2017-11-17 18:45:45 CET; 21s ago
Process: 19395 ExecStart=/usr/local/bin/twistd --nodaemon --rundir=${IKEA_HOME
Main PID: 19395 (code=exited, status=217/USER)
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Unit entered fail
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Failed with resul
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Service hold-off
nov. 17 18:45:45 raspberrypi systemd[1]: Stopped IKEA Tradfri COAP-adapter.
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Start request rep
nov. 17 18:45:45 raspberrypi systemd[1]: Failed to start IKEA Tradfri COAP-adapt
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Unit entered fail
nov. 17 18:45:45 raspberrypi systemd[1]: ikea-tradfri.service: Failed with resul
but when i do
pi@raspberrypi:~ $ cd /home/pi/domoticz/plugins/IKEA-Tradfri
pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ /usr/local/bin/twistd -n -y tradfri.tac
I get
Removing stale pidfile /home/pi/domoticz/plugins/IKEA-Tradfri/twistd.pid
2017-11-17T21:26:47+0100 [-] Removing stale pidfile /home/pi/domoticz/plugins/IKEA-Tradfri/twistd.pid
2017-11-17T21:26:47+0100 [-] Loading tradfri.tac...
2017-11-17T21:26:49+0100 [-] Loaded.
2017-11-17T21:26:49+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] twistd 17.9.0 (/usr/bin/python3 3.5.3) starting up.
2017-11-17T21:26:49+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] reactor class: twisted.internet.epollreactor.EPollReactor.
2017-11-17T21:26:49+0100 [-] AdaptorFactory starting on 1234
2017-11-17T21:26:49+0100 [builtins.AdaptorFactory#info] Starting factory <AdaptorFactory object at 0xb6057930>
^C2017-11-17T21:27:05+0100 [-] Received SIGINT, shutting down.
2017-11-17T21:27:05+0100 [-] (TCP Port 1234 Closed)
2017-11-17T21:27:05+0100 [builtins.AdaptorFactory#info] Stopping factory <AdaptorFactory object at 0xb6057930>
2017-11-17T21:27:05+0100 [-] Main loop terminated.
2017-11-17T21:27:05+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] Server Shut Down.
I did change the pathin the ikea-tradfri.serice by changing /opt/... by /home/pi/...