updates

arendst 2017-02-16 10:57:41 +01:00
parent fa44dd7792
commit beb10652cc
1 changed files with 7 additions and 7 deletions

@ -12,20 +12,20 @@ The following servers should be made available:
### 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```
- On the hardware page add Type ```MQTT Client Gateway with LAN interface```
1. Give it a name
2. Configure the interface with access to your MQTT server (```Remote Address```, ```Port```, ```Username``` and ```Password```)
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)```
- 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. 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
2. On the Devices page find the new switch by it's name
1. Remember it's Idx number
## Sonoff-Tasmota
@ -35,15 +35,15 @@ 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
2. Set ```Out topic``` to ```domoticz/out``` as hardcoded in Domoticz
3. Configure ```Idx 1``` to the value read in step 4.1
3. Configure ```Idx 1``` to the value read in step 2.1
- Use MQTT and execute commands
1. ```cmnd/sonoff/DomoticzInTopic``` with payload ```domoticz/in``` as hardcoded in Domoticz
2. ```cmnd/sonoff/DomoticzOutTopic``` with payload ```domoticz/out``` as hardcoded in Domoticz
3. ```cmnd/sonoff/DomoticzIdx1``` with payload value read in step 4.1
3. ```cmnd/sonoff/DomoticzIdx1``` with payload value read in step 2.1
- Use the serial interface and execute commands
1. ```DomoticzInTopic``` with ```domoticz/in``` as hardcoded in Domoticz
2. ```DomoticzOutTopic``` with ```domoticz/out``` as hardcoded in Domoticz
3. ```DomoticzIdx1``` with the value read in step 4.1
3. ```DomoticzIdx1``` with the value read in step 2.1
## Usage
That's it! You can now switch Sonoff from the Domoticz user interface.