Git Product home page Git Product logo

el-tako_home's Introduction

El-tako simple home automation

This is a simple home automation using Eltako funk Series 14

It simulates a button-press and button-release from wired (FTS14-EM) and wireless (EnOcean) buttons which are previous learned into the Eltako devices.
The device status of relais and dimmers are read from the Eltako-bus.

img/eltako_funk.png

Tested with:

Device
FAM14 Antenna module
FTS14EM Inputs - buttons
FSR14-4x Impulse relais
FSB14 Roller shutter
FUD14 Dimmer
Enocean Wireless button

Front-end

The front-end www/index.html shows every (light-)switch ordered into groups.
Clicking on a switch/button will send a button-press, releasing the button will send a button-release.

http://127.0.0.1:8088
img/el-tako_home.png

Configuration

Web service

bin/el-tako_home.ini

{   "HTTP_PORT": 8088,
    "STATIC_DIR": "../www",
    "API_BASE": "/tako-home/api",
    "COM_PORT": "COM7:57600,n,8,1"  # serial USB port where FAM14 is connected
}

Using a REST-API device status is read and button click are simulated.

http://127.0.0.1:8088/docs

img/el-tako_api.png

Example GET read response:

{ "Keuken": {
    "Keuken dim": {"on": 0,"dim": 0},
    "Eettafel": "on": 0}
  },
  "Living": {
    "Zithoek dim": {"on": 0,"dim": 0},
    "Bureau": {"on": 0}
  }
}

Example PUT write data:

  • button press {"Living.Bureau":1}
  • button release {"Living.Bureau":0}

el-tako_home.json

In this file the Eltako devices are defined with there corresponding buttons. The devices have a name and are ordered in groups.

First you need to program your Eltako devices with addresses and learn the actions on buttons.
Use the Eltako tool PCT14 to do this.

Every device has an address which is the key in the json below.
Set the type of the device, the group and name you want to appear in the App.
The all_off is not a device it only simulates a button press.
The btn specifies the button address and data to be send on the Eltako func RS485 bus.
To find the correct btn.addr and .data use PCT14 (see PCT14_2json.md).

el-tako_home.json

{
    "all_off": {
        "typ": "button", 
        "group": "Central", "name": "Alles uit",
        "btn": {"addr": "00001028", "data": "10000000"}
    },
    "00000004": {
        "typ": "FSB14", 
        "group": "Screens", "name": "Screen Keuken",
        "btn": {"addr": "FEF82C30", "data": "10000000"}
    },
    "00000008": {
        "typ": "FUD14", 
        "group": "Living", "name": "Zithoek dim",
        "btn": {"addr": "00001036", "data": "50000000"}
    },
    "0000000a": {
        "typ": "FUD14",
        "group": "Keuken", "name": "Keuken dim",
        "btn": {"addr": "00001003", "data": "30000000"}
    },
    "0000000c": {
        "typ": "FSR14",
        "group": "Keuken", "name": "Eettafel",
        "btn": {"addr": "00001026", "data": "30000000"}
    }
    "00000013": {
        "typ": "FSR14", 
        "group": "Living", "name": "Bureau",
        "btn": {"addr": "00001006", "data": "30000000"}
    }
}

Install

  • Connect the FAM14 USB (virtual serial port)
    • turn the FAM14 wheel BA to Pos. 4
  • Copy the directories bin and www
  • set the correct COM port in bin/el-tako_home.ini
  • create your bin/el-tako_home.ini
  • Create a virtual env (or use pyinstaller)
    • pip install -r requirements.txt
    • python el-tako_home.py
  • http://127.0.0.1:8088

LICENSE

El-tako is licensed under the MIT License.

TODO

Refs:

el-tako_home's People

Contributors

luchermans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

el-tako_home's Issues

How to connect via USB?

This is not an issue but a question

Thanks for this repository in advance: I am currently trying to figure out how to read and write commands from and to Eltako devices.
Your repository is of great help so far. I am however at the very beginning with my Eltako experiments and am just trying to get signals from a FAM14 via USB.

Would you please please elaborate how you managed to connect to the FAM14 using the micro usb cable?

Connect the FAM14 USB (virtual serial port)
turn the FAM14 wheel BA to Pos. 4

Right now I connected the USB port but can't even find the USB device on my linux machine ๐Ÿ˜ฌ

Where can I find the "data" from FCT14?

First of all I would like to thank you for this project!

I have tried to use it, and even managed to control one of my switches. When I tried to control a second switch it had no effect.

I was wondering where you get the "data" value from PCT14 to be added to the el-tako_home.json file. Below you can find a couple of screenshots of what I am seeing in PCT14.

Screenshot from 2023-01-21 23-08-11

Screenshot from 2023-01-21 23-09-33

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.