This got me thinking about this, too. I used the fantastic app Hubitat Information Driver V3 [RELEASE] Hub Information Driver v3 by @thebearmay and use the Custom Attribute in Rule Machine.
And here is the rule.
Now I just have to wait for an event to see if it works!