joba-1 / Tasmoticz

Domoticz MQTT autodiscovery plugin for Tasmota devices
MIT License
24 stars 18 forks source link
domoticz esp8266 plugin tasmota

Tasmoticz

Autodiscovery of Tasmota Devices for Domoticz

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

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/joba-1/Tasmoticz.git
  2. Restart domoticz
  3. Go to "Hardware" page and add new item with type "Autodiscovery of Tasmota Devices" and activate it
  4. 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
  3. Start domoticz

Supported devices and sensors

Planned to work with:

How To Contribute