[REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Python and python framework
globulus
Posts: 2
Joined: Wednesday 04 October 2017 12:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by globulus » Wednesday 04 October 2017 14:12

I succeeded in starting domoticz again by deleting the device in the domoticz.db.
I tried to add another switch with the green arrow from the devices table (another bulb) and when I change the status of the switch (dim or on/off), domoticz crashed again with seg fault.
I really don't understand ...

micksel
Posts: 93
Joined: Wednesday 28 January 2015 18:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by micksel » Thursday 05 October 2017 18:34

Hi,
I'm running V3.8153 and I can't get the COAP-adaptor running as a service.
If I start it manually everything works fine:
/opt/domoticz/plugins/IKEA-Tradfri$ python3 tradfri.tac

But if I try with ikea-tradfri.service

[email protected]:~ $ sudo service ikea-tradfri status
ikea-tradfri.service - IKEA Tradfri COAP-adapter
Loaded: loaded (/lib/systemd/system/ikea-tradfri.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-10-05 18:33:06 CEST; 9s ago
Process: 9342 ExecStart=/usr/local/bin/twistd --nodaemon --rundir=${IKEA_HOME} --pidfile=${IKEA_HOME}/twistd.pid --python=${
Main PID: 9342 (code=exited, status=203/EXEC)

okt 05 18:33:06 domo1.selanders.local systemd[1]: ikea-tradfri.service: Unit entered failed state.
okt 05 18:33:06 domo1.selanders.local systemd[1]: ikea-tradfri.service: Failed with result 'exit-code'.
okt 05 18:33:06 domo1.selanders.local systemd[1]: ikea-tradfri.service: Service hold-off time over, scheduling restart.
okt 05 18:33:06 domo1.selanders.local systemd[1]: Stopped IKEA Tradfri COAP-adapter.
okt 05 18:33:06 domo1.selanders.local systemd[1]: ikea-tradfri.service: Start request repeated too quickly.
okt 05 18:33:06 domo1.selanders.local systemd[1]: Failed to start IKEA Tradfri COAP-adapter.
okt 05 18:33:06 domo1.selanders.local systemd[1]: ikea-tradfri.service: Unit entered failed state.
okt 05 18:33:06 domo1.selanders.local systemd[1]: ikea-tradfri.service: Failed with result 'exit-code'.


My IKEA-Tradfri.service file:
[Unit]
Description=IKEA Tradfri COAP-adapter

[Service]
Type=simple
Environment=IKEA_HOME=/home/pi/domoticz/plugins/IKEA-Tradfri
ExecStart=/usr/local/bin/twistd --nodaemon \
--rundir=${IKEA_HOME} \
--pidfile=${IKEA_HOME}/twistd.pid \
--python=${IKEA_HOME}/tradfri.tac

User=pi
Group=pi

Restart=always

[Install]
WantedBy=multi-user.target

any suggestions?

moroen
Posts: 96
Joined: Sunday 15 January 2017 12:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen » Thursday 05 October 2017 20:34

globulus wrote:
Wednesday 04 October 2017 14:12
I succeeded in starting domoticz again by deleting the device in the domoticz.db.
I tried to add another switch with the green arrow from the devices table (another bulb) and when I change the status of the switch (dim or on/off), domoticz crashed again with seg fault.
I really don't understand ...
I've noticed a few seg-faults when updating device status on the latest development-branch. At the moment I don't have any solution, but looking into it!

Regards,
M

moroen
Posts: 96
Joined: Sunday 15 January 2017 12:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen » Thursday 05 October 2017 20:38

micksel wrote:
Thursday 05 October 2017 18:34
Hi,
I'm running V3.8153 and I can't get the COAP-adaptor running as a service.
If I start it manually everything works fine:
/opt/domoticz/plugins/IKEA-Tradfri$ python3 tradfri.tac

But if I try with ikea-tradfri.service

[email protected]:~ $ sudo service ikea-tradfri status
ikea-tradfri.service - IKEA Tradfri COAP-adapter
Loaded: loaded (/lib/systemd/system/ikea-tradfri.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-10-05 18:33:06 CEST; 9s ago
Process: 9342 ExecStart=/usr/local/bin/twistd --nodaemon --rundir=${IKEA_HOME} --pidfile=${IKEA_HOME}/twistd.pid --python=${
Main PID: 9342 (code=exited, status=203/EXEC)
...

any suggestions?
First check that you don't have a stale pid-file in the IKEA-Tradfri directory, and then try:

Code: Select all

$ twistd -n -y tradfri.tac
if this also fails, kindly post the output and I'll look into it! :)

Regards,
M

micksel
Posts: 93
Joined: Wednesday 28 January 2015 18:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by micksel » Friday 06 October 2017 6:13

Command not found but it installed OK:
pip3 install twisted gives OK

m0rph13
Posts: 17
Joined: Sunday 31 January 2016 2:24
Target OS: Raspberry Pi
Domoticz version: 3.4834
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by m0rph13 » Friday 06 October 2017 18:03

moroen wrote:
Saturday 30 September 2017 12:47
m0rph13 wrote:
Saturday 30 September 2017 11:04
Have you received your RGB lamp yet?
Just checked Ikea store-page, and still no RGB-bulbs available here, I'll keep checking! :)
Its official now, hope you get one soon!

m0rph13
Posts: 17
Joined: Sunday 31 January 2016 2:24
Target OS: Raspberry Pi
Domoticz version: 3.4834
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by m0rph13 » Friday 06 October 2017 18:10

Will the plugin allow for listening to the controllers (dimmers, detectors etc) in the future?

micksel
Posts: 93
Joined: Wednesday 28 January 2015 18:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by micksel » Friday 06 October 2017 19:26

micksel wrote:
Friday 06 October 2017 6:13
Command not found but it installed OK:
pip3 install twisted gives OK
Needed to use sudo :)

will get back with status

moroen
Posts: 96
Joined: Sunday 15 January 2017 12:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen » Friday 06 October 2017 20:02

m0rph13 wrote:
Friday 06 October 2017 18:03
moroen wrote:
Saturday 30 September 2017 12:47
m0rph13 wrote:
Saturday 30 September 2017 11:04
Have you received your RGB lamp yet?
Just checked Ikea store-page, and still no RGB-bulbs available here, I'll keep checking! :)
Its official now, hope you get one soon!
Just checked, still nothing... :cry:

Regards,
M

moroen
Posts: 96
Joined: Sunday 15 January 2017 12:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen » Friday 06 October 2017 20:05

m0rph13 wrote:
Friday 06 October 2017 18:10
Will the plugin allow for listening to the controllers (dimmers, detectors etc) in the future?
Yes, that's the plan. I'm currently struggling with reliable observations, using asyncio and aiocoap, but still no solution that works. It might not be doable using aicoap at the moment, but not giving up...Until observation is available, I don't think it's possible to monitor detectors etc... And hopefully, the rumored official API appears soon, it might be a "game changer"!

Regards,
M

micksel
Posts: 93
Joined: Wednesday 28 January 2015 18:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by micksel » Saturday 07 October 2017 9:11

Got it working last night but this morning I start getting errors in my logg:

2017-10-07 09:10:02.013 PluginSystem: Starting I/O service thread.
2017-10-07 09:10:02.064 (Tradfri) Connected successfully to: 192.168.0.20
2017-10-07 09:10:02.064 Error: (Tradfri) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.

And I no longer can Control my lights.

moroen
Posts: 96
Joined: Sunday 15 January 2017 12:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen » Saturday 07 October 2017 10:54

micksel wrote:
Saturday 07 October 2017 9:11
Got it working last night but this morning I start getting errors in my logg:

2017-10-07 09:10:02.013 PluginSystem: Starting I/O service thread.
2017-10-07 09:10:02.064 (Tradfri) Connected successfully to: 192.168.0.20
2017-10-07 09:10:02.064 Error: (Tradfri) 'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Status' and 'Extra''.

And I no longer can Control my lights.
That error means there's mismatch between the plugin and domoticz versions, it appears you're using the master-version (latest stable) of domoticz and the development branch of the plugin. Try to match branches, use the master branch of the plugin with the master branch of domoticz, or the development-branch of both...

Regards,
M

micksel
Posts: 93
Joined: Wednesday 28 January 2015 18:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by micksel » Saturday 07 October 2017 20:03

thanks, right you are I was having stabilty problems with the stable version but the beta diden't solve anything so I have now disable the IKEA-Plugin to see if that's the problem

Raf6410
Posts: 3
Joined: Tuesday 05 July 2016 11:49
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by Raf6410 » Saturday 07 October 2017 20:49

Hello,

I have the same probleme than micksel.

If I start it manually everything works fine:
/home/pi/domoticz/plugins/IKEA-Tradfri$ python3 tradfri.tac

But if I try with ikea-tradfri.service

[email protected]:~ $ sudo service ikea-tradfri status
● ikea-tradfri.service - IKEA Tradfri COAP-adapter
Loaded: loaded (/lib/systemd/system/ikea-tradfri.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2017-10-07 20:09:54 CEST; 25min ago
Process: 467 ExecStart=/usr/local/bin/twistd --nodaemon --rundir=${IKEA_HOME} --pidfile=${IKEA_HOME}/twistd.pid --python=
Main PID: 467 (code=exited, status=203/EXEC)

oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Failed with result 'exit-code'.
oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Service hold-off time over, scheduling restart.
oct. 07 20:09:54 raspberrypi systemd[1]: Stopped IKEA Tradfri COAP-adapter.
oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Start request repeated too quickly.
oct. 07 20:09:54 raspberrypi systemd[1]: Failed to start IKEA Tradfri COAP-adapter.
oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Unit entered failed state.
oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Failed with result 'exit-code'.

pls could you help me?

domoticz version : Version 3.8153
IKEA-tradfri COAP-adaptor version 0.4

Raf6410

moroen
Posts: 96
Joined: Sunday 15 January 2017 12:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen » Saturday 07 October 2017 22:20

Raf6410 wrote:
Saturday 07 October 2017 20:49
Hello,

I have the same probleme than micksel.

If I start it manually everything works fine:
/home/pi/domoticz/plugins/IKEA-Tradfri$ python3 tradfri.tac

But if I try with ikea-tradfri.service

[email protected]:~ $ sudo service ikea-tradfri status
● ikea-tradfri.service - IKEA Tradfri COAP-adapter
Loaded: loaded (/lib/systemd/system/ikea-tradfri.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2017-10-07 20:09:54 CEST; 25min ago
Process: 467 ExecStart=/usr/local/bin/twistd --nodaemon --rundir=${IKEA_HOME} --pidfile=${IKEA_HOME}/twistd.pid --python=
Main PID: 467 (code=exited, status=203/EXEC)

oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Failed with result 'exit-code'.
oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Service hold-off time over, scheduling restart.
oct. 07 20:09:54 raspberrypi systemd[1]: Stopped IKEA Tradfri COAP-adapter.
oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Start request repeated too quickly.
oct. 07 20:09:54 raspberrypi systemd[1]: Failed to start IKEA Tradfri COAP-adapter.
oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Unit entered failed state.
oct. 07 20:09:54 raspberrypi systemd[1]: ikea-tradfri.service: Failed with result 'exit-code'.

pls could you help me?

domoticz version : Version 3.8153
IKEA-tradfri COAP-adaptor version 0.4

Raf6410
Are you able to run tradfri.tac using twistd from the command line?

Code: Select all

$ cd /path/to/domoticz/plugins/IKEA-Tradfri
$ /usr/local/bin/twistd -n -y tradfri.tac
If you are able to run it through twistd, the most common cause of failure is wrong paths in the ikea-tradfri.service file.

Regards,
M

micksel
Posts: 93
Joined: Wednesday 28 January 2015 18:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by micksel » Sunday 08 October 2017 8:24

my problem was that I was missing twistd because I didn't run sudo pip3 install twisted (I don't think sudo was specified it the howto? maybe you missed that)?

moroen
Posts: 96
Joined: Sunday 15 January 2017 12:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen » Sunday 08 October 2017 15:35

micksel wrote:
Sunday 08 October 2017 8:24
my problem was that I was missing twistd because I didn't run sudo pip3 install twisted (I don't think sudo was specified it the howto? maybe you missed that)?
The need for sudo for pip3 varies on how python is set up, but none the less a good point, and I'll try to remember to update the readme to include a note about sudo! :)

Regards,
M

Raf6410
Posts: 3
Joined: Tuesday 05 July 2016 11:49
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by Raf6410 » Sunday 08 October 2017 17:18

Thanks for your messages.

I have already install twisted but without "sudo".
I reinstall it with "sudo pip3 install twisted" and now the service run automaticly at startup.

Thanks for your help.

Yours3lf
Posts: 3
Joined: Friday 22 September 2017 23:51
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by Yours3lf » Tuesday 10 October 2017 0:17

Would you please help me?
Trying to run: python3 -i -m pytradfri IPKEY and getting following errors:

Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 128, in _get_module_details
spec = importlib.util.find_spec(mod_name)
File "/usr/lib/python3.5/importlib/util.py", line 88, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
ImportError: No module named '192'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.5/runpy.py", line 134, in _get_module_details
raise error(msg.format(mod_name, type(ex).__name__, ex)) from ex
runpy._Error: Error while finding module specification for '192.168.1.65' (ImportError: No module named '192')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 188, in _run_module_as_main
sys.exit(msg)
SystemExit: /usr/bin/python3: Error while finding module specification for '192.168.1.65' (ImportError: No module named '192')



EDIT: fixed... i was not typing "pytradfri" during command execution............. :evil:
Last edited by Yours3lf on Thursday 12 October 2017 12:40, edited 1 time in total.

mrblond18
Posts: 10
Joined: Monday 21 December 2015 12:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by mrblond18 » Tuesday 10 October 2017 9:37

moroen wrote:
Sunday 17 September 2017 18:49
andi216 wrote:
Friday 15 September 2017 19:17
I've reproduced this error by specifying the wrong key, are you sure the key your using is correct?
key is correct !
I checked with the next order $ python3 -i -m pytradfri IP KEY (and it works)
Hm, I'm running out of ideas... coap-client must work from the command line, but since pytradfri works, I guess it somehow does... I'll think some more...

Regards,
M
First of all, hats off to Moroen. I used your instruction to get this plugin running in domoticz. I was up and running within one hour :-)

However, I seem to be having the same problem as andi216, regarding groups. I have bought 4 bulbs, a hub and a controller. I first connected the controller to the hub and next I connected all 4 bulbs to the controller. Both the controller and the app were able to control the lights.

After that I installed the ikea-tradfri plugin using the supplied instructions. I can control the individual lights using domoticz then, however the group does not show up. Tradfri.tac shows:

Code: Select all

2017-10-09T23:04:19+0200 [stdout#info] Unable to iterate groups
2017-10-09T23:04:19+0200 [stdout#info] Error in annouce: 'Group' object is not iterable
If I enable "observe changes" in domoticz, the "Error in annouce: 'Group' object is not iterable" message pops up about every 2 seconds.

Domoticz shows:

Code: Select all

2017-10-09 23:09:43.398 PluginSystem: Starting I/O service thread.
2017-10-09 23:09:43.448 (IkeaTradfri1) Connected successfully to: 192.168.1.59
2017-10-09 23:09:43.449 (IkeaTradfri1) Received: b'{"action": "clientConnect", "version": "0.4", "status": "Ok"}'
2017-10-09 23:09:44.451 (IkeaTradfri1) Received: b'{"action": "setConfig", "status": "Ok"}'
2017-10-09 23:09:45.053 (IkeaTradfri1) Received: b'{"action": "getLights", "result": [{"Type": "Light", "HasWB": true, "Dimmable": true, "HasRGB": false, "DeviceID": 65537, "Name": "BuitenlampLinksVoor"}, {"Type": "Light", "HasWB": true, "Dimmable": true, "HasRGB": false, "DeviceID": 65538, "Name": "BuitenlampRechtsAchter"}, {"Type": "Light", "HasWB": true, "Dimmable": true, "HasRGB": false, "DeviceID": 65539, "Name": "BuitenlampRechtsVoor"}, {"Type": "Light", "HasWB": true, "Dimmable": true, "HasRGB": false, "DeviceID": 65540, "Name": "BuitenlampLinksAchter"}], "status": "Ok"}'
2017-10-09 23:09:45.055 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "result": [{"Level": 1, "Hex": null, "DeviceID": 65537, "Name": "BuitenlampLinksVoor", "State": false}], "status": "Ok"}'
2017-10-09 23:09:45.058 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "result": [{"Level": 1, "Hex": null, "DeviceID": 65538, "Name": "BuitenlampRechtsAchter", "State": false}], "status": "Ok"}'
2017-10-09 23:09:45.060 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "result": [{"Level": 1, "Hex": null, "DeviceID": 65539, "Name": "BuitenlampRechtsVoor", "State": false}], "status": "Ok"}'
2017-10-09 23:09:45.063 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "result": [{"Level": 1, "Hex": null, "DeviceID": 65540, "Name": "BuitenlampLinksAchter", "State": false}], "status": "Ok"}'
coap-client -k MY_KEY coaps://M.Y.I.P/.well-known/core gives:

Code: Select all

v:1 t:CON c:GET i:c0fd {} [ ]
<//15001/65536>;ct=0;obs,<//15001/65537>;ct=0;obs,<//15001/65538>;ct=0;obs,<//15001/65539>;ct=0;obs,<//15001/65540>;ct=0;obs,<//15004/160628>;ct=0;obs,<//15005/160628>;ct=0;obs,<//15005/160628/218479>;ct=0;obs,<//15005/160628/228749>;ct=0;obs,<//15005/160628/211235>;ct=0;obs,<//15001>;ct=0;obs,<//15001/reset>;ct=0,<//status>;ct=0;obs,<//15005>;ct=0;obs,<//15004>;ct=0;obs,<//15004/add>;ct=0,<//15004/remove>;ct=0,<//15006>;ct=0;obs,<//15011/15012>;ct=0;obs,<//15011/9034>;ct=0,<//15011/9030>;ct=0,<//15011/9031>;ct=0,<//15011/9063>;ct=0,<//15011/9033>;ct=0,<//15010>;ct=0;obs
So no groups are advertised. If I add a second group in the app and move one bulb to it, it does show groups.

Tradfri.tac does not show an error/warning about groups anymore, however another error pops up:

Code: Select all

2017-10-09T23:06:02+0200 [stdout#info] Connected from IPv4Address(TCP, '127.0.0.1', 44090)
2017-10-09T23:06:02+0200 [stdout#info] Error in annouce: 160628
The " Error in annouce: 160628" message pops up every 2 seconds if I enable "observe changes" in domoticz.

Domoticz log does show the two groups now:

Code: Select all

2017-10-09 23:06:02.175 (IkeaTradfri1) Initialized version 1.0.3, author 'moroen'
2017-10-09 23:06:02.177 PluginSystem: Starting I/O service thread.
2017-10-09 23:06:02.228 (IkeaTradfri1) Connected successfully to: 192.168.1.59
2017-10-09 23:06:02.228 (IkeaTradfri1) Received: b'{"action": "clientConnect", "status": "Ok", "version": "0.4"}'
2017-10-09 23:06:03.381 (IkeaTradfri1) Received: b'{"action": "setConfig", "status": "Ok"}'
2017-10-09 23:06:04.082 (IkeaTradfri1) Received: b'{"action": "getLights", "status": "Ok", "result": [{"Type": "Light", "Name": "BuitenlampLinksVoor", "Dimmable": true, "HasWB": true, "DeviceID": 65537, "HasRGB": false}, {"Type": "Light", "Name": "BuitenlampRechtsAchter", "Dimmable": true, "HasWB": true, "DeviceID": 65538, "HasRGB": false}, {"Type": "Light", "Name": "BuitenlampRechtsVoor", "Dimmable": true, "HasWB": true, "DeviceID": 65539, "HasRGB": false}, {"Type": "Light", "Name": "BuitenlampLinksAchter", "Dimmable": true, "HasWB": true, "DeviceID": 65540, "HasRGB": false}, {"DeviceID": 193834, "Name": "Group - BuitenGroup", "Dimmable": true, "HasWB": false, "Type": "Group"}, {"DeviceID": 160628, "Name": "Group - Buitenverlichting", "Dimmable": true, "HasWB": false, "Type": "Group"}]}'
2017-10-09 23:06:04.103 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "status": "Ok", "result": [{"DeviceID": 65537, "State": false, "Name": "BuitenlampLinksVoor", "Level": 1, "Hex": null}]}'
2017-10-09 23:06:04.106 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "status": "Ok", "result": [{"DeviceID": 65538, "State": true, "Name": "BuitenlampRechtsAchter", "Level": 254, "Hex": null}]}'
2017-10-09 23:06:04.109 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "status": "Ok", "result": [{"DeviceID": 65539, "State": false, "Name": "BuitenlampRechtsVoor", "Level": 1, "Hex": null}]}'
2017-10-09 23:06:04.111 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "status": "Ok", "result": [{"DeviceID": 65540, "State": false, "Name": "BuitenlampLinksAchter", "Level": 1, "Hex": null}]}'
2017-10-09 23:06:04.114 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "status": "Ok", "result": [{"DeviceID": 193834, "State": true, "Name": "BuitenGroup", "Level": 0}]}'
2017-10-09 23:06:04.117 (IkeaTradfri1) Received: b'{"action": "deviceUpdate", "status": "Ok", "result": [{"DeviceID": 160628, "State": false, "Name": "Buitenverlichting", "Level": 0}]}'
coap-client -k MY_KEY coaps://M.Y.I.P/.well-known/core gives:

Code: Select all

v:1 t:CON c:GET i:79c6 {} [ ]
<//15001/65536>;ct=0;obs,<//15001/65537>;ct=0;obs,<//15001/65538>;ct=0;obs,<//15001/65539>;ct=0;obs,<//15001/65540>;ct=0;obs,<//15004/160628>;ct=0;obs,<//15004/186448>;ct=0;obs,<//15005/160628>;ct=0;obs,<//15005/186448/209628>;ct=0;obs,<//15005/186448/228123>;ct=0;obs,<//15005/186448/207949>;ct=0;obs,<//15005/186448>;ct=0;obs,<//15005/160628/218479>;ct=0;obs,<//15005/160628/228749>;ct=0;obs,<//15005/160628/211235>;ct=0;obs,<//15001>;ct=0;obs,<//15001/reset>;ct=0,<//status>;ct=0;obs,<//15005>;ct=0;obs,<//15004>;ct=0;obs,<//15004/add>;ct=0,<//15004/remove>;ct=0,<//15006>;ct=0;obs,<//15011/15012>;ct=0;obs,<//15011/9034>;ct=0,<//15011/9030>;ct=0,<//15011/9031>;ct=0,<//15011/9063>;ct=0,<//15011/9033>;ct=0,<//15010>;ct=0;obs
So it looks like if there is only one group it does not advertise it as a group.

Moroen can you have a look at "Unable to iterate groups" error and the "Error in annouce: 160628"?

Post Reply

Who is online

Users browsing this forum: Yossarian and 3 guests