-
Notifications
You must be signed in to change notification settings - Fork 1
Domoticz
Sonoff supports Domoticz MQTT 'out of the box' for both relays and sensors.
Find below the procedure to configure Domoticz and Sonoff-Tasmota.
The following servers should be made available:
- You have installed/access to a MQTT broker server and made contact with your sonoff
- You have installed Domoticz
If not already done configure Domoticz MQTT and Virtual Sensor hardware.
- On the hardware page add Type
MQTT Client Gateway with LAN interface
- Give it a name
- Configure the interface with access to your MQTT server (
Remote Address
,Port
,Username
andPassword
) - Set the
Public Topic
to flat (which seems to relate toout
in the select field)
- On the hardware page add Type
Dummy (used for virtual switches)
- Give it a name
Make a new virtual switch and remeber its Idx number.
- Make a new virtual switch to be used with Sonoff by clicking
Create Virtual Sensors
- Give it a name
- Select
Sensor Type Switch
- On the Devices page find the new switch by it's name
- Remember it's Idx number
[The sections below don't look like they are needed any longer. The in topic and out topic entry areas don't appear to be in the DOMOTICZ config section for the Sonoffs running Tasmota firmware - at least they are not there in mine and mine is working 17/03/2018]
- Use the webinterface and select
Configuration - Configure Domoticz
- Set
In topic
todomoticz/in
as hardcoded in Domoticz - Set
Out topic
todomoticz/out
as hardcoded in Domoticz - Configure
Idx 1
to the value read in step 2.i
- Set
- Use MQTT and execute commands (if necessary, replace
sonoff
with unique topic you configured in Initital Configuration, see point 5 there):-
cmnd/sonoff/DomoticzInTopic
with payloaddomoticz/in
as hardcoded in Domoticz -
cmnd/sonoff/DomoticzOutTopic
with payloaddomoticz/out
as hardcoded in Domoticz -
cmnd/sonoff/DomoticzIdx1
with payload value read in step 2.i
-
- Use the serial interface and execute commands:
-
DomoticzInTopic
withdomoticz/in
as hardcoded in Domoticz -
DomoticzOutTopic
withdomoticz/out
as hardcoded in Domoticz -
DomoticzIdx1
with the value read in step 2.i
-
That's it! You can now switch Sonoff from the Domoticz user interface.
- On the Switches page scroll down and find your Switch as configured in step 1
- Toggle the light bulb; Sonoff should respond
Home | Wiki | What's new | Tutorials | FAQ | Troubleshooting | Button usage | Commands | Rules
Home
Theo's Tasmota Tips
What's New
Getting Started
Upload tools
- SonOTA
- OTA over SCP
- Esptool
- Arduino IDE
- PlatformIO
- PlatformIO CLI
- Visual Studio Code
- Python HTTP OTA server
- Node Red OTA server and firmware manager
Usage
- Button Functionality
- MQTT Features
- Supported Commands
- Using Rules
- Sensor Configuration
- PowerOnState Configuration
- SwitchMode/SwitchTopic
- Button Multipress
- Energy Saving
- KNX Features
- Misc. Tips
Devices - Additional Info
- Sonoff Basic
- Sonoff SV
- Sonoff S20 Smart Socket
- Sonoff S26 Smart Socket
- Sonoff Dual / Dual R2
- Sonoff 4CH / 4CH Pro
- Sonoff RF and Slampher
- Sonoff RF Bridge 433
- Sonoff Pow / Pow R2
- Sonoff Touch
- Sonoff T1
- Sonoff B1 / B1 R2
- Sonoff iFan02
- Sonoff SC
- Sonoff PSA
- Sonoff S31
- Shelly 1 and 2
- Wemos D1 R1 & R2
- Wemos D1 Mini
- HuaFan Smart Socket
- Hyleton-313 Smart Plug
- MagicHome LED controller
- H801
- Arilux LC02
- SP108E LED controller
- Blitzwolf SHP2
- Tuya Dimmer
- PS-16-DZ Dimmer
- Armtronix Dimmers
- Other Devices
- retired
Home Automation Integration
- OpenHAB
- Home Assistant
- Domoticz - Manual configuaration
- Domoticz - Automatic discovery
- HomeBridge
- HomeSeer
- SmartThings
- IP-Symcon
- IOBroker
- TasmoAdmin
- Alexa
- Yeti
- NodeRed Examples
- Securing your Setup
Other Integrations
Further Topics
- MQTT Overview
- Remote Button
- Modified Kaku
- PZEM004T Energy Monitor
- IR Extension
- S20 sensor
- Wiring additional things to a module
- Sonoff Basic DHT11 Wiring
- Expand Sonoff 4CH with jack plug
- Defining new module types
- GPIO Locations
- JSON Status Responses
- Expand Sonoff Basic to 4MB Flash
- Time Proportioned Output support
- PID Control with Sonoff Devices
- Sensor-API
- Sensors Supported by Tasmota
- Syslog Setup
ESP32
Misc