Hippytyre
(Hippytyre)
January 2, 2018, 12:51pm
1
I’ve just installed a 2ch T1 light switch and I’m trying to get it to work with home assistant. Here’s what I have already which isn’t working.
platform: mqtt
name: “Workshop lights”
state_topic: “stat/OfficeSwitch/POWER1”
command_topic: “cmnd/OfficeSwitch/POWER1”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
platform: mqtt
name: “Office lights”
state_topic: “stat/OfficeSwitch/POWER2”
command_topic: “cmnd/OfficeSwitch/POWER2”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Does anyone have one of these swtches working with home assisiant?
Thanks
Callum
bboti86
(Botond Barabas)
January 2, 2018, 1:04pm
2
Hi!
Are you using the Tasmota firmware on the Sonoff switch?
Alternative firmware for ESP8266 with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full do...
B
Hippytyre
(Hippytyre)
January 2, 2018, 2:17pm
3
Yes, sorry I should have mentioned that in my post.
elRadix
(elRadix)
January 2, 2018, 2:25pm
4
each switch should have its own main topic change OfficeSwitch to OfficeSwitch1 and OfficeSwitch2
platform: mqtt
name: "Workshop lights"
state_topic: "stat/OfficeSwitch1/POWER"
command_topic: "cmnd/OfficeSwitch1/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
platform: mqtt
name: "Office lights"
state_topic: "stat/OfficeSwitch2/POWER"
command_topic: "cmnd/OfficeSwitch2/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
Hippytyre
(Hippytyre)
January 2, 2018, 2:38pm
5
Thanks for the help guys. I just got them to work using:
platform: mqtt
name: “Workshop lights”
state_topic: “stat/OfficeSwitch/POWER1”
command_topic: “cmnd/OfficeSwitch/POWER1”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
platform: mqtt
name: “Office lights”
state_topic: “stat/OfficeSwitch/POWER2”
command_topic: “cmnd/OfficeSwitch/POWER2”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
I’m not sure why that’s different from my original version but it’s working!
Hippytyre
(Hippytyre)
January 2, 2018, 3:00pm
6
It seems while gettting this working I’ve broken something else. Now when I physically touch the switch the light goes out and then right back on again. I can turn them off and on no problem with hass.io though.
Thank you to all for this post, I was having trouble setting the T1 up. This has resolved all. Thanks again