Look at this thread on how to create a virtual switch:
These two videos on Hubitat's Youtube channel should give you a good introduction to Rule Machine:
Look at this thread on how to create a virtual switch:
These two videos on Hubitat's Youtube channel should give you a good introduction to Rule Machine: