A sort of "binding" between devices

First of all,
HAPPY NEW YEAR!

To explain what I would like I make an example.
Device involved are:
1 wall switch as this

1 lamp as this


Lamp is not physically connected to the switch.
What I would like is:
When the state of the switch is ON then the lamp is ON and when I switch OFF the switch then the lamp goes OFF

Happy new years too ^^.
Your switch is technicaly a bulb too, it receive order, it don’t send command, so you are trying to command a bulb with another bulb.
If you use another bulb connected to the switch, you can use automation that look for bulb state to command the second one.

Sorry but I didn’t find how to do that using automation in Phoscon

You can perhaps get inspiration from this:

Expand the clusters on the switch and look for on/off.
Drag it as source in the bind box.
Look for same cluster for bulb and drag it as Destination.
Will work even if Deconz is offline.

It doesn’t work even if the binding is a success.

Better to use other third app, more features than on phoscon. I can be wrong but for me it’s not possible using only Phoscon.

I’m testing an extension (that does what I’m asking for) in Zigbee2Mqtt. It’s Releases · Luligu/zigbee2mqtt-automations
I would like to have the same feature in deconz

Hmm. Strange.
I was able to bind a HUE motion sensor to a HUE bulb with success using the Bind menu.

I called a sort of binding but it’n not a binding so that it should be normal my test doesn’t work.
I need to link 2 devices in the way that when device A changes its state the same happens to B.

Yes but you have bind a “sensor” with a “light”, he is trying with 2 “lights”

Ah, IC.
So the easy solution is to just bind both to a switch then.
Problem is that they are all battery devices I guess.

I didn’t ask “how to bind” but to implement “something that works as a binding” but between 2 routers.

It’s not possible using only zigbee stuff, the protocol don’t permit that, try with third app that are able to make automation.

I know that.
It would be something to add in Phoscon