GithubHelp home page GithubHelp logo

tasmoticz's Introduction

Tasmoticz

Tasmota eszközök autómatikus felderítése a Domoticzban

Magarított verzió

Autodiscovery of Tasmota Devices for Domoticz

Python plugin for autodetecting ESP8266 devices with Tasmota firmware in Domoticz Homeautomation.

  • Tasmotas native and manually configured domoticz support is not required, but can be used in parallel if you leave it compiled in for things I didn't implement yet (I use this).
  • Tasmotas native homeassistant support or Setoption19 is not required, but probably can be used in parallel with emontnemery's plugin if you leave it compiled in (not tested)
  • Domoticzs native MQTT plugin is not required
  • No cloud required :)

MQTT parts are heavily based on Shelly_MQTT by enesbcs who was very helpful in making my Shelly 2.5 driven shutters work and inspired me for this. Big thanks!

Tasmota devices usually have builtin domoticz and home assistant support. If you want or need to save space, ram or cpu cycles you can remove that from the tasmota firmware.

Prerequisites

Will be tested and working with Domoticz v4.x.

If you do not have a working Python >=3.5 installation, please install it first! Documented by Domoticz

Setup and run MQTT broker, e.g. Mosquitto and an MQTT capable Tasmota device.

Installation

  1. Clone this repository into your domoticz plugins folder (or just put the *.py files in a Tasmoticz folder there)
cd domoticz/plugins
git clone https://github.com/csilee/Tasmoticz.git
  1. Restart domoticz
  2. Go to "Hardware" page and add new item with type "Autodiscovery of Tasmota Devices" and activate it
  3. Make sure your devices have unique mqtt topics and can talk to the broker. The default topic 'sonoff' is ignored by this plugin so unconfigured devices are not picked up

If you use an mqtt broker on the same host with standard port and standard tasmota firmware with standard configuration (with or without home assistant autodetection), that should be enough.

Optional Configuration

  1. Set your MQTT broker name or ip address and port in the plugin settings if they differ from the default
  2. Set patterns of full topics of your tasmota devices that should be picked up if they are not standard
  3. Set the friendly name of your tasmota device. It will be picked up and used as device name in domoticz if you have left the generated name untouched. The standard friendly name 'Sonoff' will be ignored.

Once the plugin receives any MQTT status message from Tasmota devices it will try to create an appropriate domoticz device.

Plugin update

  1. Stop domoticz
  2. Go to plugin folder and pull new version
cd domoticz/plugins/Tasmoticz
git pull
  1. Start domoticz

Supported devices and sensors

  • Relays of Tasmota devices (POWER*)
  • Sensors in Tasmota devices for sensors I use (adding more should be easy)
    • DHT11 (nostalgia, not recommended because inaccurate)
    • AM2301
    • ENERGY
    • TSL2561
    • VL53L0X
    • BMP280/BME280
    • SI7021 (by Eddie-BS)
    • all other sensors using the data types (temperature, humidity, ...) of above sensors (by Hello1024)

Planned to work with:

  • Sensors in Tasmota devices for sensors YOU send pull requests (or device logs including the SENSOR message)
  • RGBW strips attached to Tasmota devices (my next step...)
  • Shutters operated by Tasmota devices once I have one or YOU send pull requests

How To Contribute

  • Open an issue if you think you discovered a bug, have a feature request or just a question
    • I'll close it if I think I can't help
    • You close it if the issue is solved for you
  • Open a pull request if you think you fixed a bug or implemented a new feature or need help with that
    • Fork my github repository
    • Clone your fork
    • Implement the fix in your clone (don't change anything else)
    • Push your changes to your fork
    • Open a pull request from your fork against my repository
      • I'll merge it if I think it is useful
      • If I don't merge it, at least others can see what you've done and use your fork if they need it

tasmoticz's People

Contributors

joba-1 avatar enesbcs avatar csilee avatar hello1024 avatar cyrilb1531 avatar

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.