Is it possible that my KNX switch (Zennio Flat 55 x4) send a command to OH3?
By example:
Between 8am and 6pm I like to light up 3 light groups (DALI) in my hallway. Between 6pm and 8am, I only want 1 group to light up.
In KNX this isn’t possible without buying a additional logic module. Therefor I’m wondering if it is possible to send a command (on/off) to OH3. If the command is between 8am and 6pm, OH sends an “on” to 3 groups in my DALI gateway. If it is between 6pm and 8am, the command will only be send to 1 group.
I would say: Yes. You can define a switch-control in the KNX binding and connect this to an item. With a rule, you can check the change of the item. Inside the rule, you have to check your time range and then send the right commands to other items, which are connected over knx binding channels to your bus.
Thanks… but how? I add my Zennio switch and the DALI gateway… but now I’m stuck.
I already can make a switch in openhab and switch the lights on/off or dimm with a dimmer… but I don’t want to do it with a “virtual” switch but with my zennio via OH so I can add some conditions to it.
You will need an additional Group Address for the switch.
like this:
Wall switch sends commands via 1/1/1 (state received via 1/1/2)
Light 1 receives commands via 1/2/1 (sends state via 1/2/2
Licht 2 receives commands via 1/3/1 (sends state via 1/3/2
this would result in three channels (OH2 notation as it’s so short…):
Type switch : ch1 "Light 1" [ ga="1/2/1+<1/2/2" ]
Type switch : ch2 "Light 2" [ ga="1/2/1+<1/2/2" ]
Type switch-control : sw1 "Wall switch" [ ga="1/1/2+1/1/1" ]
Please be aware that the state GA fro switch-command is the first GA, as openHAB will send the state to this GA.
I started the logs with log:tail in the console.
When I press a virtual button, then I see the the action in the console. When I press the switch,… nothing happens…
Hi, I still believe that yours is just a test because you just need to connect the group addresses in KNX and you don’t have to go to OH …
however I also created the channels for the thing in mainUI, some were updated and others not, and I didn’t understand the difference (they were the same).
Writing the text files instead everything works but the thing remains offline.
I’m discussing it in another post …