probleem met domoticz en ikea Tradfri

Pagina: 1
Acties:

Onderwerpen

Vraag


Acties:
  • 0 Henk 'm!

  • Koen_P
  • Registratie: Mei 2014
  • Laatst online: 02-10-2022
Ik probeer een Ikea Tradfri hub toe te voegen aan domoticz, maar ik krijg het niet voor mekaar....

Mijn systeem:
Domoticz v3.8153
RPi 3B met Raspbian 9 (Stretch)
Tradfri gateway versie 1.3.14

Ik heb alle stappen van https://github.com/moroen/IKEA-Tradfri-plugin gevolgd tot stap 5 en vanaf dan gaat het fout....
er komt dan volgende melding:( client_identity en Client_passkey zijn in het echt goed ingevuld, ik heb ze hier even onleesbaar gemaakt)

pi@raspberrypi:~ $ coap-client -m post -u "Client_identity" -k “Client_passkey” -e '{"9090":"TRADFRI_1"}' "coaps://IP:192.168.1.29"
-bash: coap-client: opdracht niet gevonden

Ik ben een een beginner met de rpi en domoticz en weet niet wat er fout is gegaan... Alle hulp is welkom.

hieronder een overzicht van de volledige installatie:

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Feb 14 23:35:33 2018
pi@raspberrypi:~ $ git clone https://github.com/ggravlingen/pytradfri.git
Cloning into 'pytradfri'...
remote: Counting objects: 1084, done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 1084 (delta 22), reused 11 (delta 4), pack-reused 1039
Receiving objects: 100% (1084/1084), 359.26 KiB | 0 bytes/s, done.
Resolving deltas: 100% (671/671), done.
pi@raspberrypi:~ $ cd pytradfri
pi@raspberrypi:~/pytradfri $ python3 setup.py install
running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/test-easy-install-1150.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python3.5/dist-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

https://setuptools.readth.../latest/easy_install.html

Please make the appropriate changes for your system and try again.

pi@raspberrypi:~/pytradfri $ sudo python3 setup.py install
running install
running bdist_egg
running egg_info
creating pytradfri.egg-info
writing top-level names to pytradfri.egg-info/top_level.txt
writing dependency_links to pytradfri.egg-info/dependency_links.txt
writing requirements to pytradfri.egg-info/requires.txt
writing pytradfri.egg-info/PKG-INFO
writing manifest file 'pytradfri.egg-info/SOURCES.txt'
reading manifest file 'pytradfri.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pytradfri.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/pytradfri
copying pytradfri/error.py -> build/lib/pytradfri
copying pytradfri/__init__.py -> build/lib/pytradfri
copying pytradfri/resource.py -> build/lib/pytradfri
copying pytradfri/gateway.py -> build/lib/pytradfri
copying pytradfri/const.py -> build/lib/pytradfri
copying pytradfri/util.py -> build/lib/pytradfri
copying pytradfri/color.py -> build/lib/pytradfri
copying pytradfri/command.py -> build/lib/pytradfri
copying pytradfri/smart_task.py -> build/lib/pytradfri
copying pytradfri/mood.py -> build/lib/pytradfri
copying pytradfri/group.py -> build/lib/pytradfri
copying pytradfri/device.py -> build/lib/pytradfri
copying pytradfri/__main__.py -> build/lib/pytradfri
creating build/lib/pytradfri/api
copying pytradfri/api/aiocoap_api.py -> build/lib/pytradfri/api
copying pytradfri/api/__init__.py -> build/lib/pytradfri/api
copying pytradfri/api/libcoap_api.py -> build/lib/pytradfri/api
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/error.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/__init__.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/resource.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/gateway.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/const.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/util.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/color.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/command.py -> build/bdist.linux-armv7l/egg/pytradfri
creating build/bdist.linux-armv7l/egg/pytradfri/api
copying build/lib/pytradfri/api/aiocoap_api.py -> build/bdist.linux-armv7l/egg/pytradfri/api
copying build/lib/pytradfri/api/__init__.py -> build/bdist.linux-armv7l/egg/pytradfri/api
copying build/lib/pytradfri/api/libcoap_api.py -> build/bdist.linux-armv7l/egg/pytradfri/api
copying build/lib/pytradfri/smart_task.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/mood.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/group.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/device.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/__main__.py -> build/bdist.linux-armv7l/egg/pytradfri
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/error.py to error.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/resource.py to resource.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/gateway.py to gateway.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/const.py to const.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/util.py to util.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/color.py to color.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/command.py to command.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/api/aiocoap_api.py to aiocoap_api.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/api/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/api/libcoap_api.py to libcoap_api.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/smart_task.py to smart_task.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/mood.py to mood.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/group.py to group.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/device.py to device.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/__main__.py to __main__.cpython-35.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/pytradfri-5.3.1-py3.5.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing pytradfri-5.3.1-py3.5.egg
Copying pytradfri-5.3.1-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding pytradfri 5.3.1 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/pytradfri-5.3.1-py3.5.egg
Processing dependencies for pytradfri==5.3.1
Finished processing dependencies for pytradfri==5.3.1
pi@raspberrypi:~/pytradfri $ pip3 install twisted

Collecting twisted
Downloading https://www.piwheels.host...35-cp35m-linux_armv7l.whl (3.0MB)
100% |████████████████████████████████| 3.0MB 61kB/s
Collecting incremental>=16.10.1 (from twisted)
Downloading incremental-17.5.0-py2.py3-none-any.whl
Collecting Automat>=0.3.0 (from twisted)
Downloading Automat-0.6.0-py2.py3-none-any.whl
Collecting zope.interface>=4.0.2 (from twisted)
Downloading https://www.piwheels.host...35-cp35m-linux_armv7l.whl (161kB)
100% |████████████████████████████████| 163kB 1.0MB/s
Collecting hyperlink>=17.1.1 (from twisted)
Downloading hyperlink-17.3.1-py2.py3-none-any.whl (73kB)
100% |████████████████████████████████| 81kB 1.7MB/s
Collecting constantly>=15.1 (from twisted)
Downloading constantly-15.1.0-py2.py3-none-any.whl
Collecting six (from Automat>=0.3.0->twisted)
Downloading six-1.11.0-py2.py3-none-any.whl
Collecting attrs (from Automat>=0.3.0->twisted)
Downloading attrs-17.4.0-py2.py3-none-any.whl
Collecting setuptools (from zope.interface>=4.0.2->twisted)
Downloading setuptools-38.5.1-py2.py3-none-any.whl (489kB)
100% |████████████████████████████████| 491kB 523kB/s
Installing collected packages: incremental, six, attrs, Automat, setuptools, zope.interface, hyperlink, constantly, twisted
Successfully installed Automat-0.6.0 attrs-17.4.0 constantly-15.1.0 hyperlink-17.3.1 incremental-17.5.0 setuptools-38.5.1 six-1.11.0 twisted-17.9.0 zope.interface-4.4.3
pi@raspberrypi:~/pytradfri $
pi@raspberrypi:~/pytradfri $ cd /opt/domoticz/plugins/
-bash: cd: /opt/domoticz/plugins/: Bestand of map bestaat niet
pi@raspberrypi:~/pytradfri $ /opt/domoticz/plugins$ git clone https://github.com/moroen/IKEA-Tradfri-plugin.git IKEA-Tradfri
-bash: /opt/domoticz/plugins$: Bestand of map bestaat niet
pi@raspberrypi:~/pytradfri $ cd /opt/domoticz/plugins/
-bash: cd: /opt/domoticz/plugins/: Bestand of map bestaat niet
pi@raspberrypi:~/pytradfri $ cd /opt/
pi@raspberrypi:/opt $ ls
minecraft-pi pigpio sonic-pi vc Wolfram
pi@raspberrypi:/opt $ cd..
-bash: cd..: opdracht niet gevonden
pi@raspberrypi:/opt $ cd
pi@raspberrypi:~ $ cd /domoticz/plugins
-bash: cd: /domoticz/plugins: Bestand of map bestaat niet
pi@raspberrypi:~ $ ls
Desktop libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb Public Videos
Documents Music python_games
domoticz oldconffiles pytradfri
Downloads Pictures Templates
pi@raspberrypi:~ $ cd /domoticz/
-bash: cd: /domoticz/: Bestand of map bestaat niet
pi@raspberrypi:~ $ cd /home/domoticz
-bash: cd: /home/domoticz: Bestand of map bestaat niet
pi@raspberrypi:~ $ cd /home/pi/domoticz/
pi@raspberrypi:~/domoticz $ cd plugins
pi@raspberrypi:~/domoticz/plugins $ git clone https://github.com/moroen/IKEA-Tradfri-plugin.git IKEA-Tradfri
Cloning into 'IKEA-Tradfri'...
remote: Counting objects: 379, done.
remote: Total 379 (delta 0), reused 0 (delta 0), pack-reused 379
Receiving objects: 100% (379/379), 87.92 KiB | 0 bytes/s, done.
Resolving deltas: 100% (225/225), done.
pi@raspberrypi:~/domoticz/plugins $ cd
pi@raspberrypi:~ $ coap-client -m post -u "Client_identity" -k “Client_passkey” -e '{"9090":"TRADFRI_1"}' "coaps://IP:192.168.1.29"
-bash: coap-client: opdracht niet gevonden
pi@raspberrypi:~ $ coap-client -m post -u "Client_identity" -k “Client_passkey” -e '{"9090":"TRADFRI_1"}' "coaps://IP:192.168.1.29"
-bash: coap-client: opdracht niet gevonden

Alle reacties


Acties:
  • 0 Henk 'm!

  • T-Ri
  • Registratie: Augustus 2011
  • Laatst online: 21:33
Stap 1 vergeten? Dit script even draaien: https://github.com/ggravl...pt/install-coap-client.sh

Acties:
  • 0 Henk 'm!

  • lasloX
  • Registratie: Augustus 2004
  • Laatst online: 27-08 14:11
Hoi,

De laatste stap heb ik ook genomen, echter nog geen success.
Ik krijg geen PSK terug; ik krijg de volgende melding:

v:1 t:CON c:POST i:1286 {} [ ]
decrypt_verify(): found 24 bytes cleartext
decrypt_verify(): found 4 bytes cleartext
4.00

en dus kan Domoticz niet connecten.

2018-04-03 23:35:50.231 (Tradfri@Home) Device has disconnected
2018-04-03 23:35:56.242 (Tradfri@Home) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-04-03 23:35:56.242 (Tradfri@Home) Device has disconnected
2018-04-03 23:36:02.254 (Tradfri@Home) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-04-03 23:36:02.254 (Tradfri@Home) Device has disconnected
2018-04-03 23:36:08.264 (Tradfri@Home) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-04-03 23:36:08.264 (Tradfri@Home) Device has disconnected
2018-04-03 23:36:14.272 (Tradfri@Home) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-04-03 23:36:14.272 (Tradfri@Home) Device has disconnected
2018-04-03 23:36:20.232 (Tradfri@Home) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-04-03 23:36:20.232 (Tradfri@Home) Device has disconnected

Enig idee wat ik "fout" doe ?

Acties:
  • 0 Henk 'm!

  • pentacle1
  • Registratie: April 2013
  • Laatst online: 17-08 14:31
Zelfde probleem hier ben al 4 dagen bezig
Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused

Ik ben nu echt de weg kwijt 8)7

[ Voor 61% gewijzigd door pentacle1 op 13-04-2018 09:54 ]


Acties:
  • 0 Henk 'm!

Verwijderd

Heeft iemand dit probleem al gevonden? ik heb er helaas ook last van

Acties:
  • 0 Henk 'm!

  • pveatx
  • Registratie: Maart 2012
  • Laatst online: 01-09 15:44
Wat is de versie van je Gateway? Mijne is recent geupgrade naar versie 1.6.0 en sindsdien werkt coap-client ook niet meer bij mij.

Ik heb wel een PSK, en als ik query met

code:
1
coap-client -m get -u "IDENTITY" -k "PSK" "coaps://192.168.2.2:5684/15001/65537"


krijg ik keurig:

code:
1
{"3":{"0":"IKEA of Sweden","1":"TRADFRI transformer 30W","2":"","3":"1.2.245","6":1},"9001":"keukenkastjes","5750":2,"9002":1527787087,"9020":1531778220,"9003":65537,"9054":0,"9019":1,"3311":[{"5850":0,"5851":134,"9003":0}]}


Maar om de lamp te dimmen werkte voorheen:

code:
1
coap-client -m put -u "IDENTITY" -k "PSK" -e '{ "3311":[{”5851”:20 }] }' "coaps://192.168.2.2:5684/15001/65537"


En daar krijg ik nu ook 4.00 als enige antwoord op, zonder reactie.

EasyLogic BV (RFID & IoT) | iMac 27" i7 16GB 2020 | MacBookPro 2021 M1 Pro | Loxone Domotica | VW ID3.1P | VW Tiguan 2.0TSI 4motion


Acties:
  • 0 Henk 'm!

  • pveatx
  • Registratie: Maart 2012
  • Laatst online: 01-09 15:44
Ik heb gevonden wat ik fout deed. De app op de telefoon was geupdate naar versie 1.6.0 maar de Gateway is nog op1.4.15. Ik had echter mijn code naar een andere Raspberry Pi verplaatst. Kennelijk moet je dan een nieuwe Identity en een nieuwe "secretid" voor die computer / MAC Address genereren. Dat doe je met:

code:
1
coap-client -m get -u "IDENTIT2" -k "key-on-gateway" "coaps://192.168.2.2:5684/15001/65537"


Dat geeft je een nieuwe sleutel om met coap-client te gebruiken. Na het invoegen van die sleutel en het nieuwe identity werkten alle commando's weer.

EasyLogic BV (RFID & IoT) | iMac 27" i7 16GB 2020 | MacBookPro 2021 M1 Pro | Loxone Domotica | VW ID3.1P | VW Tiguan 2.0TSI 4motion


Acties:
  • 0 Henk 'm!

  • aojudo
  • Registratie: Augustus 2015
  • Laatst online: 02-09 16:17
Koen_P schreef op dinsdag 20 maart 2018 @ 21:27:
Ik probeer een Ikea Tradfri hub toe te voegen aan domoticz, maar ik krijg het niet voor mekaar....

Mijn systeem:
Domoticz v3.8153
RPi 3B met Raspbian 9 (Stretch)
Tradfri gateway versie 1.3.14

Ik heb alle stappen van https://github.com/moroen/IKEA-Tradfri-plugin gevolgd tot stap 5 en vanaf dan gaat het fout....
er komt dan volgende melding:( client_identity en Client_passkey zijn in het echt goed ingevuld, ik heb ze hier even onleesbaar gemaakt)

pi@raspberrypi:~ $ coap-client -m post -u "Client_identity" -k “Client_passkey” -e '{"9090":"TRADFRI_1"}' "coaps://IP:192.168.1.29"
-bash: coap-client: opdracht niet gevonden

Ik ben een een beginner met de rpi en domoticz en weet niet wat er fout is gegaan... Alle hulp is welkom.

hieronder een overzicht van de volledige installatie:

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Feb 14 23:35:33 2018
pi@raspberrypi:~ $ git clone https://github.com/ggravlingen/pytradfri.git
Cloning into 'pytradfri'...
remote: Counting objects: 1084, done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 1084 (delta 22), reused 11 (delta 4), pack-reused 1039
Receiving objects: 100% (1084/1084), 359.26 KiB | 0 bytes/s, done.
Resolving deltas: 100% (671/671), done.
pi@raspberrypi:~ $ cd pytradfri
pi@raspberrypi:~/pytradfri $ python3 setup.py install
running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/test-easy-install-1150.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python3.5/dist-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

https://setuptools.readth.../latest/easy_install.html

Please make the appropriate changes for your system and try again.

pi@raspberrypi:~/pytradfri $ sudo python3 setup.py install
running install
running bdist_egg
running egg_info
creating pytradfri.egg-info
writing top-level names to pytradfri.egg-info/top_level.txt
writing dependency_links to pytradfri.egg-info/dependency_links.txt
writing requirements to pytradfri.egg-info/requires.txt
writing pytradfri.egg-info/PKG-INFO
writing manifest file 'pytradfri.egg-info/SOURCES.txt'
reading manifest file 'pytradfri.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pytradfri.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/pytradfri
copying pytradfri/error.py -> build/lib/pytradfri
copying pytradfri/__init__.py -> build/lib/pytradfri
copying pytradfri/resource.py -> build/lib/pytradfri
copying pytradfri/gateway.py -> build/lib/pytradfri
copying pytradfri/const.py -> build/lib/pytradfri
copying pytradfri/util.py -> build/lib/pytradfri
copying pytradfri/color.py -> build/lib/pytradfri
copying pytradfri/command.py -> build/lib/pytradfri
copying pytradfri/smart_task.py -> build/lib/pytradfri
copying pytradfri/mood.py -> build/lib/pytradfri
copying pytradfri/group.py -> build/lib/pytradfri
copying pytradfri/device.py -> build/lib/pytradfri
copying pytradfri/__main__.py -> build/lib/pytradfri
creating build/lib/pytradfri/api
copying pytradfri/api/aiocoap_api.py -> build/lib/pytradfri/api
copying pytradfri/api/__init__.py -> build/lib/pytradfri/api
copying pytradfri/api/libcoap_api.py -> build/lib/pytradfri/api
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/error.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/__init__.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/resource.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/gateway.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/const.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/util.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/color.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/command.py -> build/bdist.linux-armv7l/egg/pytradfri
creating build/bdist.linux-armv7l/egg/pytradfri/api
copying build/lib/pytradfri/api/aiocoap_api.py -> build/bdist.linux-armv7l/egg/pytradfri/api
copying build/lib/pytradfri/api/__init__.py -> build/bdist.linux-armv7l/egg/pytradfri/api
copying build/lib/pytradfri/api/libcoap_api.py -> build/bdist.linux-armv7l/egg/pytradfri/api
copying build/lib/pytradfri/smart_task.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/mood.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/group.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/device.py -> build/bdist.linux-armv7l/egg/pytradfri
copying build/lib/pytradfri/__main__.py -> build/bdist.linux-armv7l/egg/pytradfri
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/error.py to error.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/resource.py to resource.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/gateway.py to gateway.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/const.py to const.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/util.py to util.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/color.py to color.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/command.py to command.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/api/aiocoap_api.py to aiocoap_api.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/api/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/api/libcoap_api.py to libcoap_api.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/smart_task.py to smart_task.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/mood.py to mood.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/group.py to group.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/device.py to device.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/pytradfri/__main__.py to __main__.cpython-35.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pytradfri.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/pytradfri-5.3.1-py3.5.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing pytradfri-5.3.1-py3.5.egg
Copying pytradfri-5.3.1-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding pytradfri 5.3.1 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/pytradfri-5.3.1-py3.5.egg
Processing dependencies for pytradfri==5.3.1
Finished processing dependencies for pytradfri==5.3.1
pi@raspberrypi:~/pytradfri $ pip3 install twisted

Collecting twisted
Downloading https://www.piwheels.host...35-cp35m-linux_armv7l.whl (3.0MB)
100% |████████████████████████████████| 3.0MB 61kB/s
Collecting incremental>=16.10.1 (from twisted)
Downloading incremental-17.5.0-py2.py3-none-any.whl
Collecting Automat>=0.3.0 (from twisted)
Downloading Automat-0.6.0-py2.py3-none-any.whl
Collecting zope.interface>=4.0.2 (from twisted)
Downloading https://www.piwheels.host...35-cp35m-linux_armv7l.whl (161kB)
100% |████████████████████████████████| 163kB 1.0MB/s
Collecting hyperlink>=17.1.1 (from twisted)
Downloading hyperlink-17.3.1-py2.py3-none-any.whl (73kB)
100% |████████████████████████████████| 81kB 1.7MB/s
Collecting constantly>=15.1 (from twisted)
Downloading constantly-15.1.0-py2.py3-none-any.whl
Collecting six (from Automat>=0.3.0->twisted)
Downloading six-1.11.0-py2.py3-none-any.whl
Collecting attrs (from Automat>=0.3.0->twisted)
Downloading attrs-17.4.0-py2.py3-none-any.whl
Collecting setuptools (from zope.interface>=4.0.2->twisted)
Downloading setuptools-38.5.1-py2.py3-none-any.whl (489kB)
100% |████████████████████████████████| 491kB 523kB/s
Installing collected packages: incremental, six, attrs, Automat, setuptools, zope.interface, hyperlink, constantly, twisted
Successfully installed Automat-0.6.0 attrs-17.4.0 constantly-15.1.0 hyperlink-17.3.1 incremental-17.5.0 setuptools-38.5.1 six-1.11.0 twisted-17.9.0 zope.interface-4.4.3
pi@raspberrypi:~/pytradfri $
pi@raspberrypi:~/pytradfri $ cd /opt/domoticz/plugins/
-bash: cd: /opt/domoticz/plugins/: Bestand of map bestaat niet
pi@raspberrypi:~/pytradfri $ /opt/domoticz/plugins$ git clone https://github.com/moroen/IKEA-Tradfri-plugin.git IKEA-Tradfri
-bash: /opt/domoticz/plugins$: Bestand of map bestaat niet
pi@raspberrypi:~/pytradfri $ cd /opt/domoticz/plugins/
-bash: cd: /opt/domoticz/plugins/: Bestand of map bestaat niet
pi@raspberrypi:~/pytradfri $ cd /opt/
pi@raspberrypi:/opt $ ls
minecraft-pi pigpio sonic-pi vc Wolfram
pi@raspberrypi:/opt $ cd..
-bash: cd..: opdracht niet gevonden
pi@raspberrypi:/opt $ cd
pi@raspberrypi:~ $ cd /domoticz/plugins
-bash: cd: /domoticz/plugins: Bestand of map bestaat niet
pi@raspberrypi:~ $ ls
Desktop libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb Public Videos
Documents Music python_games
domoticz oldconffiles pytradfri
Downloads Pictures Templates
pi@raspberrypi:~ $ cd /domoticz/
-bash: cd: /domoticz/: Bestand of map bestaat niet
pi@raspberrypi:~ $ cd /home/domoticz
-bash: cd: /home/domoticz: Bestand of map bestaat niet
pi@raspberrypi:~ $ cd /home/pi/domoticz/
pi@raspberrypi:~/domoticz $ cd plugins
pi@raspberrypi:~/domoticz/plugins $ git clone https://github.com/moroen/IKEA-Tradfri-plugin.git IKEA-Tradfri
Cloning into 'IKEA-Tradfri'...
remote: Counting objects: 379, done.
remote: Total 379 (delta 0), reused 0 (delta 0), pack-reused 379
Receiving objects: 100% (379/379), 87.92 KiB | 0 bytes/s, done.
Resolving deltas: 100% (225/225), done.
pi@raspberrypi:~/domoticz/plugins $ cd
pi@raspberrypi:~ $ coap-client -m post -u "Client_identity" -k “Client_passkey” -e '{"9090":"TRADFRI_1"}' "coaps://IP:192.168.1.29"
-bash: coap-client: opdracht niet gevonden
pi@raspberrypi:~ $ coap-client -m post -u "Client_identity" -k “Client_passkey” -e '{"9090":"TRADFRI_1"}' "coaps://IP:192.168.1.29"
-bash: coap-client: opdracht niet gevonden
Is het al gelukt?

Acties:
  • 0 Henk 'm!

  • pvklink
  • Registratie: November 2014
  • Laatst online: 29-07-2023
Ik krijg ook dezelfde fout bij het coap-client commando, dat deze niet bestaat!

Iemand een oplossing, rest ging wel zonder errors..

Acties:
  • 0 Henk 'm!

  • nellestm
  • Registratie: November 2005
  • Laatst online: 23-12-2024
al gelukt inmiddels? zo niet. wat is de inhoud van ikea-tradfri.service bestand?

Marco......

Pagina: 1