moroen wrote: ↑Thursday 19 September 2019 13:14
redfirebrooks wrote: ↑Thursday 19 September 2019 7:21
So I restarted form scratch following the readme.md. Everything looks fine, service is started and "tradfri list" gives me all my devices.
I have deleted the previous IKEA device from Domcoticz and recreated a new one...
But I have still the ikea-tradfri.service: Failed with result 'exit-code'
Have you tried stopping the service, and then run tradfri from the command line? If you use the -vv flag, you'll get a lot more information. Feel free to post the output here, and I'll take a look!
Regards,
M
Thanks a lot for your support.
This is what I got.
Code: Select all
pi@domoticz:~ $ tradfri -vv server
INFO:Starting IKEA-Tradfri HTTP server 0.2.0 on 127.0.0.1:8085
INFO:Starting IKEA-Tradfri TCP server 0.2.0 on 127.0.0.1:1234
Then I thought it could come from a bad configuration... indeed... the IP in domoticz was not set to localhost.
My mistake.
UPDATE
It looks that I still have a problem. After few minutes the plugin seems to loose the connection to the gateway. I can't control anymore my bulb through the domoticz devices. I have to stop/start the service or enable/disable the debug option in the plugin settings.
For example the debug when I try to turn on a group called Salon
Code: Select all
2019-09-24 07:14:19.005 Status: User: Admin initiated a switch command (1686/Salon IKEA/On)
2019-09-24 07:14:21.446 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:14:21.476 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
2019-09-24 07:14:21.477 (PLUGIN MANAGER) Calling message handler 'onHeartbeat'.
2019-09-24 07:14:21.477 (PLUGIN MANAGER) Pushing 'WriteDirective' on to queue
2019-09-24 07:14:21.477 (PLUGIN MANAGER) Processing 'WriteDirective' message
2019-09-24 07:14:21.477 (PLUGIN MANAGER) Sending 69 bytes of data
2019-09-24 07:14:21.477 (PLUGIN MANAGER) 7b 22 67 72 6f 75 70 73 22 3a 20 22 54 72 75 65 22 2c 20 22 {"groups":."True",."
2019-09-24 07:14:21.477 (PLUGIN MANAGER) 62 61 74 74 65 72 79 5f 6c 65 76 65 6c 73 22 3a 20 22 54 72 battery_levels":."Tr
2019-09-24 07:14:21.477 (PLUGIN MANAGER) 75 65 22 2c 20 22 61 63 74 69 6f 6e 22 3a 20 22 67 65 74 43 ue",."action":."getC
2019-09-24 07:14:21.477 (PLUGIN MANAGER) 68 61 6e 67 65 73 22 7d 0a .. .. .. .. .. .. .. .. .. .. .. hanges"}.
2019-09-24 07:14:23.446 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:14:23.481 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
2019-09-24 07:14:23.481 (PLUGIN MANAGER) Calling message handler 'onHeartbeat'.
2019-09-24 07:14:24.038 (RFLINK) Temp + Humidity (Sonde 433)
2019-09-24 07:14:25.447 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:14:25.487 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
2019-09-24 07:14:25.487 (PLUGIN MANAGER) Calling message handler 'onHeartbeat'.
2019-09-24 07:14:27.447 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:14:27.491 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
2019-09-24 07:14:27.491 (PLUGIN MANAGER) Calling message handler 'onHeartbeat'.
2019-09-24 07:14:29.448 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:14:29.494 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
2019-09-24 07:14:29.494 (PLUGIN MANAGER) Calling message handler 'onHeartbeat'.
2019-09-24 07:14:31.448 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:14:31.498 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
2019-09-24 07:14:31.498 (PLUGIN MANAGER) Calling message handler 'onHeartbeat'.
2019-09-24 07:14:33.448 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:14:33.454 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
2019-09-24 07:14:33.454 (PLUGIN MANAGER) Calling message handler 'onHeartbeat'.
2019-09-24 07:14:35.449 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
and when it works
Code: Select all
2019-09-24 07:17:23.208 (PLUGIN MANAGER) 35 22 7d 0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 5"}.
2019-09-24 07:17:23.164 Status: User: master initiated a switch command (1686/Salon IKEA/Set Level)
2019-09-24 07:17:24.676 (PLUGIN MANAGER) Pushing 'ReadEvent' on to queue
2019-09-24 07:17:24.711 (PLUGIN MANAGER) Processing 'ReadEvent' message
2019-09-24 07:17:24.711 (PLUGIN MANAGER) Received 195 bytes of data
2019-09-24 07:17:24.711 (PLUGIN MANAGER) 7b 22 73 74 61 74 75 73 22 3a 20 22 4f 6b 22 2c 20 22 61 63 {"status":."Ok",."ac
2019-09-24 07:17:24.711 (PLUGIN MANAGER) 74 69 6f 6e 22 3a 20 22 73 65 74 4c 65 76 65 6c 22 2c 20 22 tion":."setLevel",."
2019-09-24 07:17:24.711 (PLUGIN MANAGER) 72 65 73 75 6c 74 22 3a 20 5b 7b 22 44 65 76 69 63 65 49 44 result":.[{"DeviceID
2019-09-24 07:17:24.711 (PLUGIN MANAGER) 22 3a 20 31 33 31 30 37 35 2c 20 22 43 6f 6c 6f 72 73 70 61 ":.131075,."Colorspa
2019-09-24 07:17:24.712 (PLUGIN MANAGER) 63 65 22 3a 20 22 57 53 22 2c 20 22 44 69 6d 6d 61 62 6c 65 ce":."WS",."Dimmable
2019-09-24 07:17:24.712 (PLUGIN MANAGER) 22 3a 20 74 72 75 65 2c 20 22 4c 65 76 65 6c 22 3a 20 31 32 ":.true,."Level":.12
2019-09-24 07:17:24.712 (PLUGIN MANAGER) 37 2c 20 22 54 79 70 65 22 3a 20 22 47 72 6f 75 70 22 2c 20 7,."Type":."Group",.
2019-09-24 07:17:24.712 (PLUGIN MANAGER) 22 48 65 78 22 3a 20 22 66 31 65 30 62 35 22 2c 20 22 53 74 "Hex":."f1e0b5",."St
2019-09-24 07:17:24.712 (PLUGIN MANAGER) 61 74 65 22 3a 20 74 72 75 65 2c 20 22 4e 61 6d 65 22 3a 20 ate":.true,."Name":.
2019-09-24 07:17:24.712 (PLUGIN MANAGER) 22 53 61 6c 6f 6e 20 49 4b 45 41 22 7d 5d 7d .. .. .. .. .. "Salon.IKEA"}]}
2019-09-24 07:17:24.712 (PLUGIN MANAGER) Pushing 'onMessageCallback' on to queue
2019-09-24 07:17:24.712 (PLUGIN MANAGER) Processing 'onMessageCallback' message
2019-09-24 07:17:24.712 (PLUGIN MANAGER) Calling message handler 'onMessage'.
2019-09-24 07:17:24.712 (PLUGIN MANAGER) updateDeviceState [{'Hex': 'f1e0b5', 'DeviceID': 131075, 'State': 'true', 'Level': 127, 'Name': 'Salon IKEA', 'Colorspace': 'WS', 'Dimmable': 'true', 'Type': 'Group'}]
2019-09-24 07:17:24.712 (PLUGIN MANAGER) Level: 127
2019-09-24 07:17:24.712 (Salon IKEA) Updating device from 0:'50' to have values 1:'50'.
2019-09-24 07:17:24.719 (PLUGIN MANAGER - Salon IKEA - Color) Updating device from 0:'20' to have values 1:'20'.
2019-09-24 07:17:24.773 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:17:24.779 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
2019-09-24 07:17:24.779 (PLUGIN MANAGER) Calling message handler 'onHeartbeat'.
2019-09-24 07:17:26.774 (PLUGIN MANAGER) Pushing 'onHeartbeatCallback' on to queue
2019-09-24 07:17:26.785 (PLUGIN MANAGER) Processing 'onHeartbeatCallback' message
My settings are (I am using Python Plugin Manager):
Nom: IKEA TRADFRI
Type: IKEA Tradri
Délai d'inactivité: Désactivé
Adaptor IP Address: 127.0.0.1
Observe changes: yes
Polling interval (seconds): 300
Transition time (tenth of a second):
Add groups as devices: yes
Monitor battry levels: no
Debug: no
I can control my bulbs through the Ikea Home Smart app or Apple Home.