- Platform information:
- Hardware: Raspberry Pi 3
- OS: OpenHabian
- Java Runtime Environment: OpenJDK Runtime Environment (Zulu 8.46.0.225-CA-linux_aarch32hf) (build 1.8.0_252-b225)
- openHAB version: 2.0
Hi,
I have installed two single gang switches of the same brand with no problem, they are working fine. I believe that I am having problems calling the right gang on these 2 switches one 3 gang and one 2 gang
In the zigbee2mqtt logs it looks like it is working?
Log from zigbee2mqtt
info 2020-08-31 14:48:55: MQTT publish: topic âzigbee2mqtt/3_gang/state_topâ, payload âOFFâ
info 2020-08-31 14:48:55: MQTT publish: topic âzigbee2mqtt/3_gang/state_bottomâ, payload âOFFâ
info 2020-08-31 14:48:55: MQTT publish: topic âzigbee2mqtt/3_gang/stateâ, payload âONâ
info 2020-08-31 14:55:44: MQTT publish: topic âzigbee2mqtt/3_gang/state_centerâ, payload âONâ
info 2020-08-31 14:45:50: MQTT publish: topic âzigbee2mqtt/2_gang/state_topâ, payload âONâ
info 2020-08-31 14:45:50: MQTT publish: topic âzigbee2mqtt/2_gang/linkqualityâ, payload â5â
info 2020-08-31 14:45:50: MQTT publish: topic âzigbee2mqtt/2_gang/state_bottomâ, payload âOFFâ
info 2020-08-31 14:45:50: MQTT publish: topic âzigbee2mqtt/2_gang/stateâ, payload âONâ
default.things
Thing topic 3_gang âLightâ @ âKitchen Lightâ
{
Channels:
Type switch : state âPowerâ [ stateTopic = âzigbee2mqtt/3_gang/state_centerâ, commandTopic = âzigbee2mqtt/3_gang/set/stateâ, on=âONâ, off=âOFFâ ]
Type switch : state âPowerâ [ stateTopic = âzigbee2mqtt/3_gang/stateâ, commandTopic = âzigbee2mqtt/3_gang/set/stateâ, on=âONâ, off=âOFFâ ]
}
Thing topic 2_gang âLightâ @ â2 Gangâ
{
Channels:
Type switch : state âPowerâ [ stateTopic = âzigbee2mqtt/2_gang/stateâ, commandTopic = âzigbee2mqtt/2_gang/set/stateâ, on=âONâ, off=âOFFâ ]
}
default.items
Switch 2_Light â2 Lightâ (FamilyRoom) {channel=âmqtt:topic:openhabBroker:2_gang:stateâ}
Switch Kitchen_Light âKitchen Lightâ (FamilyRoom) {channel=âmqtt:topic:openhabBroker:3_gang:state_centerâ}
I cant figure out how to define the individual gangs even though I know the channels from the zigbee2mqtt logs?
If I write the configs like thisâŠ
default.things
Thing topic 3_gang âLightâ @ âKitchen Lightâ
{
Channels:
Type switch : state âPowerâ [ stateTopic = âzigbee2mqtt/3_gang/stateâ, commandTopic = âzigbee2mqtt/3_gang/set/stateâ, on=âONâ, off=âOFFâ ]
}
default.items
Switch Kitchen_Light âKitchen Lightâ (FamilyRoom) {channel=âmqtt:topic:openhabBroker:3_gang:stateâ}
This will turn on the gang that is state_top in the zigbee2mqtt logs.
How to turn on the individual gangs?
This is my first post on a forum ever! Many thanks to the community, Iâve managed to work through many many problems on my ever rewarding Openhab journey by reading this forum but Iâm stumped here!
Please let me know if there is any more information that could help solving my problem.
Thank you!