Update
tips and tricks
Check your current location when you use a "cd" command that you are in the right location.
Linux is capital senitive example: curl -l will not work, curl -L does, sudo works Sudo doesn't, same with folders
Use sudo only when it is in the command, otherwise you'll get problems with file rights later, and you will get errors
In Putty press right mouse button to paste command in shell
In a Raspbian terminal window use shift+ctrl+v to paste command
SD Card preparation:
1. Flash SD with Raspbian Lite
2. Start up with a monitor / screen and keyboard and login.
On terminal:
raspi-config
Set wifi, date, country, timezone, keyboard, enable ssh / serial / spi , reset password
reboot and login
1. sudo apt-get update
2. sudo apt-get upgrade
3. cd /etc
4. ls
/// check for pythonX.X folder (should be python2.7)
5. sudo apt-get remove python2.7
/// just to be sure you don't get 2 versions of python mixed up
6. sudo apt-get install python3-pip autoconf libtool
7. sudo reboot
8. curl –L install.domoticz.com | sudo bash
/// watch the Upper L, if this doesn't work try: sudo curl –L install.domoticz.com | bash
9. cd /home/pi/domoticz/plugins
10. git clone
https://github.com/moroen/IKEA-Tradfri-plugin.git IKEA-Tradfri
/// make sure you end with IKEA-Tradfri with the upper en lower letters as stated
11. cd IKEA-Tradfri
12. bash ./install-coap-client.sh
13. pip3 install pytradfri
14. sudo pip3 install twisted
15. pip3 install service-identity
16. sudo reboot
17. ./configure.py --debug <IP adres tradfri hub> <security KEY on rear of hub>
/// Example: ./configure.py --debug 192.168.4.128 CRT5aE4Ff2DfGbE3 don't use sudo command,
18. python3 tradfri.tac
/// service test, if terminal returns: IKEA-tradfri COAP-adaptor version 0.8.7 started (command line)!
press ctrl+c and continue with 19
19. ./configure.py –-skip-config –-create-service
20. sudo cp ikea-tradfri.service /etc/systemd/system
21. sudo systemctl daemon-reload
22. sudo systemctl start ikea-tradfri.service
23. sudo systemctl enable ikea-tradfri.service
24. Sudo reboot
/// open domoticz in a browser
25. Add ikea tradfri in hardware
/// IP adress adapter is 127.0.0.1 not the IP of the tradfri gateway
26. toggle: Observe changes to yes