Service to reevaluate a sensor state

Would be good to have a service to reevaluate a sensor state.
In some automation I would like to check a sensor state before go to next step, to for example confirmed it worked.
I know you can do it via REST api but its getting a bit of a pain when you have to write a custom script and maintain password in two places (when you got encruption setup).

do you have news about that?