Safety Monitor and the Dashboard

This is amazing!! Just what I was looking for!
Is there a way that once I click the tile the "string" will be erased automatically and I just have to punch in the code?

For detailed instructions: Guide on How to Create a Password Protected Tile

I write the rule in the same way and it works great. The only issue (if you can call it an issue), is that when I press the tile to enter the code, I have the "Enter Code:" string I need to erase and replace for the code...

you do not need to erase the string "Enter Code:". If your code is 1234 and your rule is looking for the entry: "Enter Code:1234" , then you do not need to erase the string. If you write your rule different than the one I made and your rule is looking for the entry "1234", then yes you would have to erase the string and replace with the code, but why do that.

Show your rule, if you wrote it like the way I showed there is no need to erase the string.

Another way to state it is that my disarm code is "1234", that is the number sequence that I and my wife need to remember to disarm with that tile. But the rule is not looking for me to enter "1234" in the tile's string,(in order to disarm the alarm), it is looking for me to enter "Enter Code:1234". I don't have to worry about remembering or entering the first part of the string "Enter Code:", since it is always displayed by the tile. I simply need to press the tile and add 1234 onto the end of the existing string so it reads: "Enter Code:1234", this is what the rule looks for and executes appropriately.

Aha...I see what you mean. Thanks for the explanation!

If anyone else comes across this thread and can't figure out how to link the dashboard tile to a global variable refer to this topic

I'm trying to set this up and having a heck of a time. I've got the GV and rule as shown above but how do you link it to a tile?

I guess i am dumb, what am i missing...how do you get the "enter code" tile to appear?

I assume you're referring to the HSM code to appear on a dashboard?

Goto: Apps, Hubitat Dashboard, select the dashboard you want, select Advanced (towards the bottom, enter the PIN you want to use.

Now when you try to change the HSM mode you will be prompted for a code.

no i mean he has the enter code tile on the dashboard...i want to pin protect the tile like the OP said in this forum:

the green tile in this pic from the above poster:

The tile isn't PIN protected, it's allowing you to enter a PIN.

You would select a variable tile as the template.
image
I hope this is what you meant.

this makes no sense to me at all...what am i missing?

image

image

image

For the device type you would select the global variable connector that you set up. What device did you select for the string variable tile?

Edit: you need to make sure the global variable is shared with the dashboard you are setting up. By default all devices should be shared but if you disabled 'Use all your devices' you will need to manually select it for that dashboard.

what is missing that i found is you need to select the name of the GV in your dashboard then select what type it is...i dont see where anyone has said this on this thread:

i know have it showing even thought the rule is not working (but ill look at that later)

  1. Identify your GV name:

image

  1. In the dashboard, add a tile, then select a device using the name of your GV and then select Var. String as the template:

  1. After you add your tile, you will now get the "Enter Code" tile

1 Like

FYI... i spent the last 4 hrs looking for this solution...glad its slow at work today :laughing:

1 Like

You must be joking, the post above provides a link to the best how-to concerning adding a Global Variable tile to a dashboard. Glad you got it working.

Anybody need an up to date guide on how to do this, it can be found here: Guide on How to Create a Password Protected Tile

2 Likes

Just adding here that setting the button number in the dashboard tile is required and easily missed.
I kept trying to debug why the heck tapping on the button didn't do anything (even when having a physical v.s. virtual buttons on my dashboard) and I was missing setting the button numbers. Duh!

Hope this is a good reminder to others

One question:

Does anyone know how to get a tablet to come up with a numeric keypad when you press the Dashboard tile, instead of an alphanumeric keyboard? My tablet's keyboard actually doesn't even have numbers accessible without pressing another key. Would be much better if it came up with only numbers in the on-screen keyboard.

Never mind, I figured it out!

I thought I was going to have to mess with custom CSS or something...

All you have to do, is instead of selecting "Variable String" for the dashboard tile, select "Variable Number." (See Post 23 from @Gdust.)

Then, since the input only allows numbers, you have to erase the "Enter code:" portion of the string comparison in the Rule Machine rule.
E.g.
IF (Variable Disarm(Enter Code:) = Enter Code:1234(F) [FALSE]) THEN
becomes:
IF (Variable Disarm(Enter Code:) = 1234(F) [FALSE]) THEN

Example:

Now, when you press on "Enter code:" it will erase anything that is not a number, bring up the numeric keypad, and allow you to enter the PIN! Works great :slight_smile:

3 Likes

Thanks Brian. This works great and is an improvement over the way I originally created it. I updated my dashboard. My only concern, if you could call it that, is the GV is created as a GV String in RM, but added to the dashboard as GV Number. Hopefully any future updates will not cause a problem, since what you did works a charm.

Either you or I should probably write an updated how-to detailing the beginning to end steps for the creation of this tile, since it appears many users try to get this working and the above thread is kinda convoluted.

1 Like