Install Tellstick Debian
Basic Tellstick functionality with Domoticz. This guide will explain how to switch on and off devices with your Tellstick together with Domoticz. Important information before you begin. Tellstick support built into Domoticz is only at early stages. Right now there is only support for dimmers and onoff switches and configuration of devices has to be done in tellstick. Contribute to this guide. Install tellduscore and development libraries. Linux UbuntuDebian prebuilt. TellStick if several exists in the system. Tellstick installation on a Raspberry PI. EDIT This is only valid for the old debian image that dont. It is realy simple to install a Tellstick on the. OpenHAB 2 on Linux. The following instructions will guide you through the process of setting up openHAB 2 and recommended packages for both. DEB Ubuntu, Debian etc. Add tellstick installer. Debian stretch Installation Guide. Installation instructions, along with downloadable files, are available for each of the supported architectures. RPi. GPIO Installation. Correct things that are wrong and add your findings. Links that can be useful. Installing telldus coreLatest Stable release 2. Raspbian Raspberry PIInstalling telldus coreLatest Beta from Trunk on Raspbian Raspberry PIInstalling telldus core on Beagle. Bone. RPM of telldus core for Fedora 1. Nokia C5 Theme Maker. Instructions in Swedish and support. Some prerequisites and specifications. To get the Tellstick working on your RaspberryRaspbian or linux you need to install Telldus Core. GUI installation recommended The following is the recommended way of installing Telldus software for Ubuntu and Debian. This is not the most stripped down approach. This guide will help you to install the fantastic software HomeAutomation and the very neat piece of hardware Telldus Tellstick on a B3. The information here is. Install Tellstick Debian' title='Install Tellstick Debian' />I will not cover this in my guide since there are plenty of guides for this out there. Just search for something like install telldus core on raspberry pi. After installing Telldus Core you also need to configure your devicesswitches. This is done by adding them in the file tellstick. Information can be found on Telldus Wiki. Configuration. Of course you also need to have Domoticz installed on your Raspberry. ShortDescription Tellstick service daemon Description. You can find a guide for that here. Adding Tellstick devices in Domoticz. Ok, so now I assume that you can turn your switches on and off with tdtool from the command line. If you dont know this then you need to go back and study the prerequisities again. Run command man tdtool for a complete manual. In Domoticz goto hardware and add a new Tellstick device. Tellstick Live' title='Tellstick Live' />Now all devices tellstick devices should be added to the device tab. If they are not added try to restart domoticz. Compiling Domoticz with Tellstick support. When you run cmake it will detect if it is possible to build support for tellstick or not. In order to be able to support tellstick Domoticz must have the telldus core devel package installed on the system that compiles the source code. On systems with apt package manager that can be done like this. Edit the file etcaptsources. Run the following commands to install the key and to install the headers and libraries. O sudo apt key add. Then you can run cmake and make as normal and Domoticz should have the Tellstick option in the create hardware dropdown. Old workaround for Tellstick. If you use a older version of Domoticz or your version was not compiled with Tellstick support you can still use this guide to be able to turn switches on and off. Since your Domoticz doesnt know about Tellstick or about its devices, we need to add virtual devices in Domoticz that act as our Tellstick devices. Browse to your Domoticz installation and select Setup Hardware. Select Type Dummy, enter a name for the dummy hardware and press Add. To add a new switch navigate to the Switches page and press Manual LightSwitch. Select the dummy hardware you created earlier and give your switch a name. Select Switch Type OnOff. Type, House Code and Unit Code shouldnt be of any importance. Finally press Add Device Go to Setup Devices and note down the Idx of your newly created switch. You will need this later. This concludes the setup inside of Domoticz. Feel free to add as many virtual switches as you like. Connect the virtual switches to a Tellstick switch. Now we just need something between the virtual switches we created and the Tellstick switches. In the Domoticz installation, domoticzscripts, theres a Bash script called domoticzmain. As long as the script is named with the underscore in the beginning it isnt active. When we rename it to just domoticzmain this script will be executed EVERY TIME a switch is flipped in Domoticz. Find the script in your installation and have a look at it. Youll see that its a shell script thats fed with some different input parameters, e. All these parameters are sent to the script every time a domoticz switch is pressed in the GUI. Now I suggest that you create some variables of your own, to save time and make the code easier to read. Create variables for tdtool On and Off. You can also create variables for your switches, like. The numbers in these parameters needs to match the switch ID in tdtool. You can get a list of all your switches in tdtool by typing tdtool l. So now its just a matter of writing your code. Some simple if else statements is sufficient to turn on and off switches. Heres a sample statement. On then. on bedroom amp. Off then. off bedroom amp. The code above says IF the deviceid Idx of the pressed domoticz switch is 6, and IF the statuscode sent is On, DO on bedroom turn on the bedroom switch. ELSE if the status sent is Off, DO off bedroom. So now you just add your other devices in the same manner and expand the script.