Hello!
Despite the title, my ultimate goal is to connect a sonoff switch set on Home Assistant with virtual switch on Samsung Smartthings. My idea is following (if you have idea to do it better, I;d love to hear!). To do this, I’ve managed to:
- Setup sonoff as mqtt switch1 on home assistant.
- Setup smartthings virtual switch as mqtt switch2 on home assistant with mqtt bridge.
The only thing left is to link switch1 with switch2, so that always when switch1 is turned on, then switch2 is turned on. The other way around as well. My question - how to do it?
here is the config for 2 switches:
- platform: mqtt
entity_id: "light_living_01"
name: "Living Room main light 1"
command_topic: "cmnd/light-l1/power"
state_topic: "stat/light-l1/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
- platform: mqtt
entity_id: "smartthings_living_01"
name: "Smartthings Living Room main light 01"
command_topic: "smartthings/Living room main 1/switch"
state_topic: "smartthings/Living room main 1/switch/stat"
qos: 1
payload_on: "on"
payload_off: "off"
retain: true