Hi @bfara83 please share your wall switches piston. Since you have taken the time to clarify that the difference is important, what about plug in light control plugs (so neither wall switch, nor smart bulb)
Device Status Tiles
I added my Room Occupancy Status Tiles Piston on the very first post if anyone is interested for Smartapp/DTH the located here:
It looks like this, I used the exact same colors that are used on the DTH:
Iām working on a new Thermostat and Presence Sensor Tiles as well which is mostly done but working out some glitches on them still. Iāll post them when they are ready.
Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy
I updated the Light Switch tile above with code aupy to fix a typo found by @kraig109 that I want to thank for pointing out on the timestamps for the tiles.
I also added a check to display brightness level on the footer when the switch is on if the light switch has dimmer functionally. If the switch doesnāt have a dimmer function, itāll have the same behavior as before where itāll display the time stamp instead.
Any chance you can assist me with inserting a SMS notification task when Leak Sensor turns wet?
Your Pistons/Tiles are fantastic, TY very much
Rick
Not a problem, I posted the one I created for myself here with a few instructions on setup:
Thanks bfara83, I have a piston that does basic notification as well, works fine, was hoping to integrate it into the main Water Sensor Tile Piston from p3nde
After further review, it might not be the best idea to incorporate since the tile piston refreshes every 10 mins, I want the SMS immediately. I will continue to use my SMS piston along side this one
Thanks
Rick
Thatās always possible if you want to combine the Device Tile piston with the piston you have already for the SMS alerts when t hereās an alert. I already do SMS alerts on the Weather Tiles already so itāll work fine if you combine the two. Something to remember is to make sure the chunks arenāt too big, I usually have problems when itās more than 20 chucks but others have found 24+ to be too big. Chucks is basically the size of the piston but I canāt imagine youāll run into that limit if you combine the two to one since itās only 9 chucks for the Water Leak Sensor Device Tile I created.
I added a separate post for the Thermostat Device Tiles located here:
This post is getting too big to add it here I think so I posted in itās own post.
I updated the Room Occupancy Status Tiles above with Code: xc0u
This is to fix the DTH update a few days back to change the occupancy status which broke the tiles. I also fixed an issue with the boolean list variable TileActive creating a value over and over again filling up the memory of the piston. Iāll have to fix this on the other pistons as well and update whenever I can this week.
I donāt know if these would be of use to anybody, but here are a few Iāve cobbled together (some borrowed from above and tweaked a bit). Iāve just started playing with these so if theyāre too early for anyone to use, itās not going to hurt my feelings!
This is a simple tile that shows quickly whether or not one of two people are home, or if the house is vacant. The first piston drives one tile, the second option drives the two discrete tiles
One Tile:
Two Tiles:
These tiles and the status above them are driven by a combination of a few samples provided on this board by other members, too:
Gauges and text status piston:
Thermostat Away change temp
Hereās a streamlined one for multiple gauges. All you have to do is select the devices in āDeviceListā, give them each a short name in, you guessed it, ShortName, and youāre done.
This generates the text above the gauges, also. To disable this, delete lines 42 43, and 46.
Question, comments, or ideas to improve this please let me know!
I Broke webCoRE!
Very good! Much respect. Now time to utilize and adapt. Thanks
How about these ideas?
- keep track of a device and show result of cumulative time itās been on for the day. And reset at midnight.
- I would like to find a way to have a tile with a compass rather than a gauge, show wind direction?
- Is there a way to split the rows that tiles show up on? For grouping reason?
- How about a virtual switch that can disable tiles if off and if on enable tiles?
I probabaly will think of more but this is off top of head.
Thanks! It was the first time I got them to work without having to manually write a separate āset piston tileā statement for each light to monitor. Makes life a LOT easier if you rename any of your lights, or replace a switch, too.
Iāll give that some thought. I should be doable with a number of variables that increase by the different between the current event time and the previous event time.
That seems like it should be easy but I canāt find a way to do it. Unless you just wanted general direction, like N NE E SE S, etc.? That could probably be done using font-awesome or web/wingdings.
You can split them up by putting duplicate pistons into different categories and just choosing the devices you want in that row. Maybe one for for first floor, one for second, one for basement, one for outsideā¦ any way you want to slice it, really.
That should be pretty easy to implement, You want the gauges disabled or completely hidden when the switch is off? One thing Iāve struggled to figure out on these is how to make things disappear. Once a tile is created, Iāve had to delete the piston associated with it to get the tile to go away.
Off-topic - any chance youāre in the Raleigh area based on your screen name?
Oh geez I might get fired for this one
I donāt think there is a proper way to add CSS in these expressions, but it is actually possible to leverage the text size feature to doā¦ mostly anything. Please donāt rely heavily on this hack; custom CSS would be cool but this is not the way it would be done
To tilt that arrow I set the tile text to an expression '[1x;display:block;transform:rotate(' + [thing : direction] + 'deg)|:fa-long-arrow-up:]'
that adds the wind direction in degrees from North (you could use radians as well with the rad
unit). This hack does not work if your CSS includes whitespace, commas, or a slew of characters that would conflict with normal webCoRE syntax. The 1x
portion is the text size where normally this would look like [2x|Some big text]
.
Thatās slick!!
Thereās so much webCoRE can do, I donāt know where to look to find solutions like that. Even the āchart-gaugeā I used of the sample above I only knew about because I found it as an example and modified it to fit what I needed.
Is there a programming language webCoRE is based on that you search out possibilities like that or is it just experience and knowing things to try?
I browse the webCoRE source code to figure out how things work but it does take a lot of familiarity (and lucky searching) to piece it all together, the dashboard is an Angular 1 app. The gauge charts are a third-party project, Google Charts but I didnāt see anything useful there that you hadnāt already customized.
Nice, thanks!! Iāll definitely end up spending some time looking through that to see what I can learn.