How to get state of a sensor with siri shortcuts?

What is the easiest way to query a status with an iOS shortcut? Is it only possible with a webhook? through the official app on the device you can call services and actions, but not a simple status?

Thank you

Use the “render template” shortcut offered by the app. It can use any Jinja template.