Does it work for lights becoming “unavailable”? This is what my Matter/Thread Nanoleaf bulbs become when turned off by a manual switch (I think), but I couldn’t get it to reliably update one light from me cutting power to another.
Don’t use dumb switches with smart bulbs, or if you do, don’t cut power to them via the switch.
You’ll destroy the Thread mesh and cause issues with any other Thread devices using your bulbs to receive messages.
You have 3 options here:
Use a smart switch with decoupled mode and have the press of your switch trigger an automation (or this blueprint) to switch off one (or more) bulbs.
Use a smart switch with no decoupled mode and wire up your bulbs to the permanent live. Have the press of your switch trigger an automation (or this blueprint) to switch off one (or more) bulbs.
Keep using your dumb switch, but don’t use it to switch off your bulbs. Switch the smart bulb off via HA instead.
@jnrcorp in the first post please detail what is different vs Linked Entities (LE)? I use many LE automations to sync physical scene switches (Zooz Double Switch).
@jnrcorp since you have never answered it seems there is no difference between what you posted and Linked Entities, you just made it only work for entities in the Light domain.
Linked Entities also looks like it has some code protections since yours is based on an older version of it which did not have those.