Dashboard Theming (Custom CSS) and Mounting Hardware Ideas

Awesome, thanks!!!

Details on how you got the all that to work? I donā€™t have any experience with the Fire, so I donā€™t know if thatā€™s a native function or if you had to change something somehowā€¦please share, if you donā€™t mind.

1 Like

Reader digest version: (since Iā€™m on my phone)

  1. Create virtual switch in smartthings, control that switch value in smartthings.
  2. use sharptools to subscribe to that switch.
  3. use sharptools tasker plugin to set a variable in tasker to follow virtual switch.
  4. use the tasker variable in the tasker profile that controls screen abilities.

I know thatā€™s basic. I think itā€™s pretty close to that.

4 Likes

Cool, thanks!

@tgauchat

What is the CSS code for the music player tiles?
Can we make them vertical versus horizontal?

Has anyone done anything cool with these?

Is there still an easy way to hand off a link to someone so they can see the status of things (pref/security/view only) on a wall tablet ā€¦ without having to have, and login to a smartthings account? I want to give access to see things like data center temperature, etc, but I donā€™t want them logging in and turning on and off the bathroom lights for practical jokes. Or is it totally locked down for 3rd party Oauth stuff now?

do I need to write my own little mini-smart tiles for a few bits of status and do the oauth myself?

Iā€™ll have access to the tablet and a computer to type on later tonight if you need more details.

As of 5.8 this is how it is. SmartTiles V6 will have a feature to share dashboards, but it wonā€™t be available at launch.

1 Like

Thanks Alex!

1 Like

Banging my head against the wall and canā€™t seem to find an answer anywhere, I simply have a custom Mode in SmartThings called ā€œDog Walkingā€. I love smartTiles, but of course ā€œDog Walkingā€ is not usable as a CSS class or element as it has a space in it. Iā€™m trying to change the icon displayed when in the ā€œDog Walkingā€ mode using the custom CSS feature but have had no luck.

Iā€™ve tried:
.icon.Dog_Walking i::before {content: url(ā€œhttp://cdn.device-icons.smartthings.com/Kids/kids3-icn@2x.pngā€);}
.icon.Dog-Walking i::before {content: url(ā€œhttp://cdn.device-icons.smartthings.com/Kids/kids3-icn@2x.pngā€);}
.icon.Dog.Walking i::before {content: url(ā€œhttp://cdn.device-icons.smartthings.com/Kids/kids3-icn@2x.pngā€);}
.icon.Dog i::before {content: url(ā€œhttp://cdn.device-icons.smartthings.com/Kids/kids3-icn@2x.pngā€);}
.icon.Dog Walking i::before {content: url(ā€œhttp://cdn.device-icons.smartthings.com/Kids/kids3-icn@2x.pngā€);}

but of course none of those work. How would one get the SmartTiles app to correctly tag modes that have spaces? ā€¦or will this be an enhancement request?

Thanks in advance!

Chris

Iā€™m pretty new to SmartThings (Iā€™m on about week 2 with my hub) and definitely new to SmartTiles (just installed late last week). I stumbled across your comment as I was looking into how complicated messing with CSS would beā€¦ Iā€™ve been in IT forever including programming so Iā€™m definitely not a Luddite but Iā€™d be more than happy to help if you need a female guinea pig :slight_smile:

2 Likes

Maybe someone can help me? Iā€™m trying to put text on a momentary button vice the icon. It wonā€™t do it. Keeps defaulting to the standard icon.
I can take the same CSS code change=> .tile.momentary to .tile.switch and text displays.

Can you NOT put text as the icon for a momentary switch?

@TN_Oldman,
Try this code snippet:

.momentary.active[data-device='Device-Code'] .fa:before {opacity: 0.8!important; color:gold; content:"TT";}
.momentary[data-device='Device-Code'] .fa:before {opacity: 1!important; color:#4682b4; content:"TT";} 

The first code is active mode of the momentary switch is the default view of the button. Pressing it gets you the second piece of code, which is only visible for a few seconds while the button action is being processed.

2 Likes

Thanks, Iā€™ll try it tonight.
I see where I possibly was off on my testing.
Thanks for the quick reply. Best part about this group. So many smart helpful people.

@DarcRanger Thanks again. Used your suggestion to get the results I wanted.

1 Like

Hi there. I am currently trying to set this CSS without any luck:
.tile.momentary [data-device=ā€˜eeec51c0-eb2d-4848-af67-0ed9af4a159dā€™] {background-color: white;}

If I remove data-device part in square brackets then all momentary switches become white. The device ID is the one I took from the IDE Log view that appears when pressing the momentary switch. I also checked the source of the dashboard page and the same device ID appears there for the momentary switch I am after. What could I be doing wrong here?

@hajar,

Try removing the space between momentary and [data-deviceā€¦].
It should look like this:

tile.momentary[data-device=ā€˜eeec51c0-eb2d-4848-af67-0ed9af4a159dā€™] {background-color: white;}

Otherwise look for another code snippet that changes the background color of the momentary tile.

I second what @DarcRanger said:

I would also stress to remove the quotes and retype them too as some text editors donā€™t transfer properly into the custom CSS.

I did one of my devices to test out the string, you will notice I used the double quote for mine:
.tile.momentary[data-device=ā€œ31f1a2e5-9e54-4903-a8d2-58ca148a1de5ā€] {background-color: white;}

Try taking a look at our Custom CSS page on www.SmartTiles.click

1 Like

Been there. Thatā€™s where I started. I was using the wrong CSS for the active and inactive state. The Custom CSS page didnā€™t have the breadcrumb I needed for momentary buttons. (Or I missed it)
Read some forums, google searches and tried a few things on my own before I asked. I knew @DarcRanger or someone would know the answer. That page is VERY HELPFUL for a rookie like me trying to learn. I have used it as a guide for MOST of the stuff Iā€™ve done. I appreciate the people who sacrifice their time to make guides for people like me.

2 Likes

Woman here! Happy to beta test. House full of us :slight_smile:

3 Likes