Рет қаралды 85,462
Three way switching with Sonoff/Tasmota/Home Assistant
This has been by far the most requested topic, so here you go!
www.DrZzs.com (it's a work in progress...)
drzzs
twitter: @Dr_Zzs
I found a couple short videos that I think explain 3 and 4 way switches pretty well.
3-way switch: • Three-way switches & H...
4-way switch: • Four-way Switches & Ho...
You need one Sonoff for each switch you want to replace.
www.itead.cc/sonoff-wifi-wire...
One Sonoff will be connected to the lights. The others will just be mqtt buttons.
The real 3-way switch work is done with an automation in Home Assistant.
If you don’t have Home Assistant yet. Now’s the time!
Home Assistant install:
• How To Get Started wit...
Home Assistant Switch set-up:
switch:
- platform: mqtt
name: "Light Connected"
command_topic: "cmnd/sonoff/power"
state_topic: "stat/sonoff/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Sonoff2"
command_topic: "cmnd/sonoff2/power"
state_topic: "stat/sonoff2/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
hidden: true
retain: true
Home Assistant Automation: (I cut this from my Automation.yaml)
- action:
- data:
entity_id: switch.upstairs_hall
service: switch.toggle
alias: Multi Switch Hall Lights
condition: []
id: '0'
trigger:
- entity_id: switch.sonoff_11
from: 'on'
platform: state
to: 'off'
- entity_id: switch.sonoff_11
from: 'off'
platform: state
to: 'on'