How-to Get Mode Value Into a Variable?

I'm surprised that %Mode% isn't a built-in global variable.

How do I get Mode into a variable so I can use it in alerts?

Using an automation?

Create a hub variable called "Whatever". And the populate that variable every time the Mode changes. In RM, it would be something like:

Trigger:
Mode becomes *changed*

Action:
Set Whatever to %value%

1 Like

Got it! I attempting to use a string operation to set the variable. Thanks!

1 Like

I think it's easier to get current Mode using Hub Info v3 driver (by @thebearmay )
image

In rule machine, you could do this

1 Like

Just noticed this after a recent update, and wonder if you've experimented with either Maker API method?