Control ST Multisensor

Do i need to create a virtual switch to control ST multisensor ?

I don't see it in the Rule Machine..

Thanks

What do you mean with "control"? An ST Multisensor is a sensor only, so it sends events and whatnot but does not receive commands (like on/off, etc.). True to its name, it should support various capabilities that Hubitat implements: contact (open/close), acceleration/vibration, orientation/three-axis, temperature, and whatnot depending on the exact model. You can use them in any app, including Rule Machine, that can take devices with any of these capabilities as an input.

Is there something in specific you're trying to do with it? You mentioned Rule Machine; any rule you create should allow you to choose capabilities that the multisensor supports (I assume you've already paired the device to Hubitat, which you have to do before you can use it anywhere).

I want to put on a door and trigger lights to go on when open and off when closed.

Totally possible! You'll need the multisensor (which you already have) and smart lights (switches or bulbs), both of which will be need to be added as devices to Hubitat.

You'll then need to set up an automation that does this. You could use Rule Machine, but the built-in Hubitat Simple Lighting app can do this for you. (While there are probably some people who do everything in Rule Machine, most people probably only use it when there isn't a clear way to do something with an existing app. Apps are generally much easier to set up.) Assuming you're on the latest hub firmware, go to Apps > Add Built-In App > Hubitat Simple Lighting > Done, then find Hubitat Simple Lighting in your "Apps" list/page. Open it, then choose "Create new Simple Lighting Rule." You can probably figure it out from there, but you'll want something like this, but with the actual lights and sensors you want instead of mine:

If you don't see the lights or mutlisensor, they were probably not added to Hubitat. Check that they appear on your "Devices" page. If they do appear there, check that they are using the correct driver--it should have been automatically detected but if it's just using "Device," it didn't and you'll need to change it to the right one (ask if you're not sure which) before it will work for this.