mirror of https://github.com/arendst/Tasmota.git
refresh
parent
468b00d865
commit
fa44dd7792
22
Domoticz.md
22
Domoticz.md
|
@ -1,14 +1,16 @@
|
|||
<img alt="Sonoff" src="https://github.com/arendst/arendst.github.io/blob/master/media/domoticz2.jpg" width="250" align="right" />
|
||||
Sonoff supports [Domoticz](http://www.domoticz.com/) MQTT 'out of the box'. Find below the procedure to start using it.
|
||||
Sonoff supports [Domoticz](http://www.domoticz.com/) MQTT 'out of the box' for both relays and sensors.
|
||||
|
||||
## Assumptions
|
||||
Find below the procedure to configure Domoticz and Sonoff-Tasmota.
|
||||
|
||||
## Prerequisites
|
||||
The following servers should be made available:
|
||||
|
||||
- You have installed/access to a MQTT server and made contact with your sonoff
|
||||
- You have installed/access to a MQTT broker server and made contact with your sonoff
|
||||
- You have installed Domoticz
|
||||
|
||||
## Domoticz
|
||||
Configure MQTT and Virtual Sensor hardware
|
||||
### Domoticz MQTT and Virtual Sensor
|
||||
Configure Domoticz MQTT and Virtual Sensor hardware.
|
||||
|
||||
1. On the hardware page add Type ```MQTT Client Gateway with LAN interface```
|
||||
1. Give it a name
|
||||
|
@ -16,15 +18,19 @@ Configure MQTT and Virtual Sensor hardware
|
|||
3. Set the ```Public Topic``` to flat (which seems to relate to ```out``` in the select field)
|
||||
2. On the hardware page add Type ```Dummy (used for virtual switches)```
|
||||
1. Give it a name
|
||||
|
||||
### Virtual switch
|
||||
Make a new virtual switch and remeber its Idx number.
|
||||
|
||||
3. Make a new virtual switch to be used with Sonoff by clicking ```Create Virtual Sensors```
|
||||
1. Give it a name
|
||||
2. Select ```Sensor Type Switch```
|
||||
4. On the Devices page find the new switch by it's name
|
||||
1. Remember it's Idx number
|
||||
|
||||
## Sonoff
|
||||
## Sonoff-Tasmota
|
||||
<img alt="Sonoff" src="https://github.com/arendst/arendst.github.io/blob/master/media/domoticz3.jpg" width="250" align="right" />
|
||||
Sonoff provides several ways of configuring Domoticz parameters.
|
||||
Sonoff provides different ways to configure Domoticz parameters.
|
||||
|
||||
- Use the webinterface and select ```Configuration - Configure Domoticz```
|
||||
1. Set ```In topic``` to ```domoticz/in``` as hardcoded in Domoticz
|
||||
|
@ -39,7 +45,7 @@ Sonoff provides several ways of configuring Domoticz parameters.
|
|||
2. ```DomoticzOutTopic``` with ```domoticz/out``` as hardcoded in Domoticz
|
||||
3. ```DomoticzIdx1``` with the value read in step 4.1
|
||||
|
||||
## Domoticz
|
||||
## Usage
|
||||
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 3
|
||||
|
|
Loading…
Reference in New Issue