Usage question: setting a command on a device based on the state of another device

I’ve had the post below bookmarked in case I ever cared to get into rules. The second example sets an argument to a setter function based on the state of another device. Not quite what you’re looking for since it’s an argument instead of the command that’s being dynamically set, but maybe there’s something useful in there.

1 Like