Virtual device door sensor value

Hi I created a vd for a sensor door
I want to set it on when a input device is 1 but if i insert 1 to the value nothing happens.
I tried with on, 1, open…
Nothing

Hi,

you have to use the capability name and a valid state like shown this example:

Someone made a nice topic about just this.

perfect, all clear. i solved my issue
many thanks… i didn’t find that topic

That nice topic does not mention anything about virtual window/door switch, only thermostat?