Isn't this the same as your other post? Get list of matching devices - #8 by user5728. Per the community guidelines, please do not create duplicates. Thanks!
As others have mentioned here (and I mentioned there), you can use webCoRE on Hubitat, as well. They are also correct that piston execute locally -- only the editor (and necessary cloud features like notifications or e-mail) requires the cloud, and there is a way to run that locally if you are concerned about that, as well.
Otherwise, Hubitat has a bunch of built-in apps designed for specific purposes -- beyond the general-purpose Rule Machine app -- and you are likely to find one, or perhaps a custom app, whether of your own or others' creation, that does what you want. If you share your specific goal, someone can probably help with that, too. With your general example, Rule Machine can do things like that (if this is the command you want) using the "command only switches that are on" option, for example, but your specific automation may be better suited to another approach.