Super Tiles are a feature – unique to SharpTools dashboards – that enable you to mix and match thing attributes, variables, and icons in a dashboard tile using a drag-and-drop editor.
Maybe it was discussed somewhere, but I did not find.
So i have a very simple use case which is kind of “covered” Two device in one tile the lock and the door. For the door only want to change closed/open and the icon, but want a full functionality of lock/unlock tile. It looks like i need to recreate the whole state change behavior and rules, rather then just add some new parts. Am I right?
On the similar topic. I think i figured it (a lot of clicking -:)). So I have 4 doors with electronic locks. I thought to reuse this super tile , but it almost like I need to create every time from scratch , any way/thought how to “templatize” it?
For certain device types (Switches, Locks, etc) there’s a Toggle Macro that you can use. So you can add either an icon or text status to the Super Tile and then customize it to use the toggle action if you’d like.
Feel free to create a feature request for Super Tile Templates – I don’t think there’s a request for it yet. Another approach some people take is to use Super Tiles to combine multiple devices into a single large Super Tile to display the status of multiple devices.
Another BTW, why in the Super Title editor fonts are scaled in percentage and not like in Style Editor for regular font where you have this enum from Tiny all the way up?
You can use a percentage in the Theme Style as well. Select the Custom option and it lets you pick a percentage. In fact, after the custom font size field is showing, you can select different font size options in the drop-down to see what value each maps to.
With Themes, the idea was to simplify to a common set of font-sizes for the headers and footers since there’s a limited practical range. We had feedback that some people wanted custom sizes, so we added that option as well. (Keep in mind, the preview tile in the Theme editor is approximate)
Super Tiles are fully interactive as you’re building them and you can see the relative size of items as you’re scaling them. So this provides a wide degree of customizability, keeps the toolbar structure consistent within the Super Tile, and keeps things consistent when resizing across labels, values, and icons within the Super Tile.
The order of preference for the Toggle Macro is as follows. The first one that matches is the action that’s executed.
toggle() command if the device has it
Switch → on()/off() based on state
Lock → lock()/unlock() based on state
Door Control → open()/closed() based on state
If the device has one of the ‘higher’ tier features and you wanted to toggle one of the lower tier features (or if you just wanted more control over the action), you could always create a rule and then use the Rule action instead of the Thing action.
I just started using the macro: toggle but can’t seem to get it to work. I selected a thing but when I click on that part of the super tile the whole tile flashes once but the thing doesn’t toggle. Reading your post it seems that there may be more to this? @josh
Take a look at the last reply immediately above yours. It discusses the toggle macro and the order of operations.
While it’s not necessary, since the behavior is documented here, you could also monitor your Hubitat logs for more details while using the macro to see how your device is handling things (or enable logging in the SharpTools app and see those log statements too).
Thanks - I thought there was something more to it as it wasn’t working when I tried on a virtual switch. However, I just went to check the logs and of course it worked now. All good.