Device Offline Status

I am looking for some help on creating a rule that will set a variable based on the “online” or “offline” status of a single device. (Using http get)

I have tried to copy a couple rules like this from the community, but so far nothing will set my variable.

The examples I found were older, so I’m wondering if they are not relavant now.

Thoughts???

This is what I’m currently using to track the status of my hub

$hub1 is my hub ID
$bearerToken is my ST API token

Thanks Terri! I got it working