- Platform information:
- Hardware: Raspberry PI 3B
- OS: Raspbian GNU/Linux 10 (buster) /
- Java Runtime Environment: 1.8.0_222
- openHAB version: 2.4.0-1
- Issue of the topic:
As you can see I’ve create a group switch (Livingroom_LIghts), and a MQTT switch (SmartSwitch01_Relay_State that is linked to the group switch. If I press the Group switch, both switches do visualize the “ON/OFF” state in my HAB panel, but if I press the MQTT switch, the group switch doesn’t switch.
What I like to achieve is, that I can switch of individual lights and switch all off with one button. Is this possible?
Items:
Group House “Haus”
Group:Switch:OR(ON,OFF) Livingroom_Lights “Wohnzimmer” (House)
Switch SmartSwitch01_Relay_State “Relay Status” (House, Livingroom_Lights) { channel=“mqtt:topic:pibroker:smartSwitch01:relayState” }
Things:
Thing topic smartSwitch01 “Weihnachtsbaum” @ “Living Room” {
Channels:
Type switch : relayState “Schalter [MAP(switch.map):%s]” [ stateTopic=“SmartSwitch01/Relay/State”, commandTopic=“SmartSwitch01” ]
}