[RELEASE] SmartGrid - Create grids of controls that you can access from anywhere

I have updated the SmartGrid documentation to include the recently added features. It can be found here or from the Help Link inside the SmartGrid app.

I'd suggest you download the file using the button in the upper right as shown, instead of paginating through it on github.
image

3 Likes

Just FYI that I have been working on this and it is looking pretty good.

Just a simple text string to make a change so that preferred settings could be cut and paste between different SmartGrids. You can see I used some HTML tags to make it look a bit better but you have full control over this or you can just leave it plain.

Everything is currently in the experimental tab so I have to figure out where it is going to reside but I'm leaning toward an Advanced tab and placing these there with a little more explanation.

1 Like

New user here. Absolutely love SmartGrid. One week into Hubitat, and one day into SmartGrid. Here's my first pass...

Is it possible to do conditional formatting on a field? For example if the temperature sensor goes over 75 degrees, put the cell in a red background.
Such a great tool!

1 Like

Wow, you have come a long way for someone who has only been on Hubitat for a week and SmartGrid for a day. I'm glad it's working for you.

To answer your question I do have some rules based formatting in the Tile Builder modules but nothing currently in SmartGrid. It is on my radar, but nothing imminent at this point.

I have a couple of suggestions for you.

  1. You can use the Rename Devices tab to clean up the device names.
    I use ~ in some of my device names and I can do this to remove those ~ from the final table like this.


    or you could say replace: ~ Master sensor 5 with Bedroom Door for example.

  2. You could use a variable for the Master 4-in-1 sensor and include it as part of the Master bedroom separator line. You'll see some examples in my previous posts and you will find instructions in the help file link at the bottom of the SmartGrid composer window.

FYI You can use the app Groups and Scenes to enhance your setup. For example you could create a group called Skylight Blinds and put both individual blinds in there and then add the group device to SmartGrid and control both devices as though they were one.

P.S. I don't have any blinds or shades so all my testing was done with virtual devices but I'm glad it's working for you. Bulbs and blinds are the two devices where I thought the multi-select would come in handy. Do you have blinds that support the Tilt function?

1 Like

Thanks for the tips! I actually renamed and added the ~ to the sensors in order to make them stand out in the dashboard. Each numbered sensor is on the same window as the same blind #. For example Master blind 2 and Master sensor 2 are both on the same window. It makes sense when I have a rule that tells the blind to close, but first check if the window is shut - else close the blind to 50%.

I tried indenting or centering the sensor name (instead of using the ~) but I couldn't find a way to do it.

I do like the idea for the variable for the temperature, I haven't played with them yet. The skylight blinds are on a couple rules that are controlled by the room temp, so I temporarily put that sensor line next to the skylight lines. If it gets hot, close them. Hence my request for the conditional formatting :smile:

I'll go look at the app for Groups and Scenes, sounds promising.
I don't have any of the tilting blinds, so I can't help there. But I do have 15 zwave roller blinds (from Smartwings) and your app will make tracking them much easier. I've got close to 70 other devices, so lots of other dashboards for me to do.
Thanks again!!



I use the Alt-255 (null) character. If you are on a PC hold down the Alt key and type 255 on the numpad and repeat, then I added a Unicode bullet. Here is a good link for easy access to eMoji's.

Now I understand what the purpose is, those sensor values might also be good to convert to variables.

Hey Everyone, I'm working on the next release and adding Presence and Motion sensors amongst other things.
image

I'm leaning towards eliminating the Pinned Sensors feature. I think with the introduction of manually sorted lists, if someone wants to have certain values always be prominent at the top of the list they can use a manually sorted list instead of using the old pinned item method. Does anyone have an issue with that?

I can remove a decent chunk of code eliminating Pinned Lists and make room for some new features that would be more valuable.

4 Likes

I'd like to test the app but when I do a search on HPM it doesn't come up. How do I get it?

Smart grid is a module of Remote Builder as per post one.
Search for Remote Builder and add the modules you want.

Well I guess that's the rub then. When I try to add remote builder from hpn it says it's already there but it's not. I'll have to find the github and load it from there.

Try doing a repair. That should install it if HPM think it's already installed.
Once installed you can then go into it and download the Smart Grid app via the 'modify an app' option and select remote builder.

1 Like

I'm having an issue with a custom sort order on a new SmartGrid. I create some custom rows, enable drag and drop, move stuff, then when I save custom sort everything moves back. I even tried scrapping a grid and starting over with a new one. Same result.

I'm not having that difficulty here but obviously specifics are hard to reproduce. Are you familiar with the Logs section?
image

Try keeping a window open for the logs and then doing a save custom sort and see if you get any errors. PM me a screenshot of the grid so I can see if there is anything obvious in there that might cause an issue.

There is a new update incoming tomorrow but please read this full post before implementing as there is a little "homework".

Additional Sensor Types
It adds 4 sensor types, Motion, Presence, Smoke Detector and CO Detector as shown below.
image

In this release I'm using an orange color as a warning indicator. Prior to this the open contact was marked as red, but in an effort to only use red when it is truly significant I've added orange as a warning. An active motion sensor, open contact, not present presence sensor will show all as orange. A "detected" state for a smoke or CO detector would show as red.

User Definable State Text
This was initially done in support of other languages but it offers some great formatting options. This can be found under the Advanced tab and the defaults look like this.

In a simple example I could change "open" to "Abierto" like this:
image

and now I get this:
image

Notice I have the word Abierto twice. That is because I also specified that device contact as a variable and used it in the device rename section to illustrate that this feature also works to match any of these state names used in variables.

Formatting Tags
These have been under the Experimental tab so I don't know how many of you have used these but they are simply CSS classes that you can modify and use to enhance the visibility or appearance of items within the SmartGrid.

So I can combine these two techniques. I'll change "not present" for the Presence sensor to "Away" and I'll also add a tag to highlight it like this: "[m1]Away[/m1]"
image
and I get this.
image

Homework.
That is all for new additions but I have a homework item for you. In order to fix a bug with Custom Rows numbering conflicting with the first devices on a new hub (they start at 1 apparently) I had to change some code in how these are allocated. The bottom line is it will mess with your Custom Sort order in a way that requires manual intervention.

After installing the update the Custom Sort order will look something like this. I have the Custom Sort column enabled for illustrative purposes.

As you can see all my Custom Rows now have a custom sort order of undefined. Initially you will think the whole thing is messed up but it is only these rows. So in this case I would have to drag each of the five rows back to their proper placement and re-save the sort order.

If you have any filters enabled you should turn those off, update the sort and then turn them back on so that even the hidden rows have a specified position otherwise they will appear at the very top.

I'm sorry you have to do this manual step but I can't get it to reliably update and when it does not, then it leave an unusable SmartGrid. Doing it this way have never failed me so I think this is a safer option.

P.S. All those N/A entries in that last picture is because it is off a test system that has almost no use and activities age out.

4 Likes

SmartGrid 4.4.0 has been release to HPM. Please be sure to read the prior post thoroughly before installing as you will have to make a change to any instances that have a custom sort.

This is the last version that will have pinned rows so if it's a must have feature for you then make a copy of the code and install it as a separate instance.

I will update the docs this week but for now use the prior post as your guidance on the new features.

1 Like

Hi Gary,
I've just decided to use custom rows. I cannot seem to get virtual switch device states to update.
I'm at the latest build.
Perhaps you could clarify a few things fpr me.
I have polling enabled and Event Timeout set to never.
If I turn a virtual switch on it does not reflect the change in the SG grid on my HE dashboard.
A refresh of SG (circular arrow at the top) updates the device.
Holding down the mouse in the modal section displays the options as described in the docs. Polling always shows false.


I set it to true but when I click on it again it shows false again.
I'm probably missing something obvious so any guidance would be appreciated.
Thanks.

EDIT: Fixed it. I hadn't saved custom sort.....

You are not the first to be caught out by that. I shall have to add something as a reminder for when the Polling is disabled.

1 Like