Throttle sensor for the RPI

Hi,

I’ve been searching for a way to get throttling information from my HA RPI
Basically I want to run this command and get ‘yes’ / ‘true’ if the value is non-zero:

vcgencmd get_throttled

which return normally with

throttled=0x0

Any help would be appreicated