Hi all!
I’m relatively new here, so let me know if this post should go somewhere else.
I’ve really been enjoying Smarttiles (thanks @tgauchat, @625alex, etc). I have it running on the Fully browser, with developer mode keeping the screen from sleeping, on a $39 Amazon Kindle Fire, attached to my refrigerator with magnets.
With only 7" of real estate and an ever growing collection of connected “things” in my house, the double-height Smarttiles thermostats were taking up too much space on the screen. Mostly I just want to monitor when the heat and air conditioning is being activated. Sacrificing extra tile space for 3 thermostats seemed like a waste.
So I’ve put together a CSS recipe to convert your Smarttiles thermostats to take up only a single tile space each. And I thought I’d share it with the community!
Here’s what the end result looks like. You may want to tweak things to match your Smarttiles setup.
Tapping on the thermostat tile will expand it to double size (like the original) and the arrows will appear again so you can adjust temperature. Tap anywhere outside of the thermostat tile to shrink it back down to single size. When thermostat is cooling, tile background is blue. When heating, it’s red. It’s a simple change, but I think it improves usability quite a bit.
Just paste this into your Smarttiles “Custom CSS” field.
div.thermostat {
height: 120px;
}
div.thermostat div.icon.up,
div.thermostat div.icon.down {
display:none;
}
div.thermostat[data-operating-state="cooling"] {
background-color: #0306a9;
}
div.thermostat[data-operating-state="heating"] {
background-color: #9f030a;
}
div.thermostat:hover,
div.thermostat:focus {
height: 240px !important;
z-index: 1001;
}
div.thermostat:hover div.icon.up,
div.thermostat:focus div.icon.up,
div.thermostat:hover div.icon.down,
div.thermostat:focus div.icon.down {
display:block;
}
Enjoy!