MacWyznawca / homebridge-mqtt-switch-tasmota

Plugin to HomeBridge optimized to work with firmware Sonoff-Tasmota, MQTT.
MIT License
57 stars 18 forks source link

Does anyone know how to make this work with 2 and 3 gang SonOff switches? #25

Open boejoyd opened 6 years ago

jeylites commented 6 years ago

@MacWyznawca Has anyone done this kind of setup?

TLCary commented 6 years ago

{ "accessory": "mqtt-switch-tasmota", "name": "Switch1", "url": "mqtt://127.0.0.1", "topics": { "statusGet": "stat/sonoff/POWER1", "statusSet": "cmnd/sonoff/POWER1" } }, { "accessory": "mqtt-switch-tasmota", "name": "Switch2", "url": "mqtt://127.0.0.1", "topics": { "statusGet": "stat/sonoff/POWER2", "statusSet": "cmnd/sonoff/POWER2" } }

jeylites commented 6 years ago

That’s helpful. Thank you!

On Mon, Feb 19, 2018 at 10:04 PM Terry notifications@github.com wrote:

{ "accessory": "mqtt-switch-tasmota", "name": "Switch1", "url": "mqtt://127.0.0.1", "topics": { "statusGet": "stat/sonoff/POWER1", "statusSet": "cmnd/sonoff/POWER1" } }, { "accessory": "mqtt-switch-tasmota", "name": "Switch2", "url": "mqtt://127.0.0.1", "topics": { "statusGet": "stat/sonoff/POWER2", "statusSet": "cmnd/sonoff/POWER2" } }

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MacWyznawca/homebridge-mqtt-switch-tasmota/issues/25#issuecomment-366702147, or mute the thread https://github.com/notifications/unsubscribe-auth/AIw6wKNw6nlrKeO0WweYiKyxJI43VWvjks5tWX9cgaJpZM4Rlgrk .

-- Sent from Iphone Mobile

e5uicide commented 6 years ago

hi, i have the same issue, kinda. the home bridge config.json part is solved above, but as i am new to the home bridge mqtt tasmota thing, i have one further question. when using more then one Sonoff Switch/Device do i have to configure something in the devices and my server? i'm sure i have to but i don't what changes have to be made.

thanks =)

TLCary commented 6 years ago

Repeat the {"accessory": .. block for each device. Remember to put commas between them. Check your json file with an online json validator.

bielbh commented 6 years ago

Hi, is my config module correct??

My config.json : { "accessory": "mqtt-switch-tasmota", "name": "New Port",

"url": "mqtt://192.168.0.22",
"topics": {
    "statusGet": "stat/sonoff/POWER1",
    "statusSet": "cmnd/sonoff/POWER1"
}

}

image