forked from arendst/Tasmota
-
Notifications
You must be signed in to change notification settings - Fork 35
Multi Relay Devices
digiblur edited this page May 8, 2019
·
1 revision
Copy the below example into configuration.yaml under the light or switch group depending on your use case. You can only have one switch group and one light group in the configuration.
switch:
- platform: mqtt
name: "Sonoff Dual A"
state_topic: "stat/sonoff/POWER1"
command_topic: "cmnd/sonoff/POWER1"
availability_topic: "tele/sonoff/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Sonoff Dual B"
state_topic: "stat/sonoff/POWER2"
command_topic: "cmnd/sonoff/POWER2"
availability_topic: "tele/sonoff/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
Use POWER<x>
when you are using a device with more than one relay (if SetOption26 is on you will also use POWER1 even if only one relay exists)