An easy shortcut to prevent a type from doing anything if not needed is something like this:

state_should="$(cat "$__object/parameter/state")"
state_is=$( value from explorer)

[ "$state_should" = "$state_is" ] && exit 0