I would need a very simple Homebridge plugin whose purpose is to create an accessory that, when triggered, switches OFF another accessory (light) if this one is ON or switches it ON if this one is OFF.
In other words this accessory has to invert the status of another accessory, basing on its status.
So I do not have to say “…switch off/on the light” but just …(for instance) “light!”
I tried to look for but I have not found something similar.
I am not familiar at all with Homebridge development, can anyone please help?