Device Status Tiles

temperature
device_health
light
tiles
power

#65

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)


#66

Itā€™s already posted above below the light bulbs device tiles piston example:

https://community.webcore.co/t/device-status-tiles/371/4


#67

Sorry Brad. Many thanks! Cheers.


#68

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:
image

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
#69

Yeess! Been waiting for these, thanks!


#70

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.


#71

@bfara83

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


#72

Not a problem, I posted the one I created for myself here with a few instructions on setup:


#73

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


#74

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.


#75

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.


#76

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.


#77

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
image

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
#79

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!
#80

Very good! Much respect. Now time to utilize and adapt. Thanks

How about these ideas?

  1. keep track of a device and show result of cumulative time itā€™s been on for the day. And reset at midnight.
  2. I would like to find a way to have a tile with a compass rather than a gauge, show wind direction?
  3. Is there a way to split the rows that tiles show up on? For grouping reason?
  4. 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.


#81

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?


#82

Oh geez I might get fired for this one :wink:

25 PM

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 :smiley:

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].


#83

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?


#84

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.


#85

Nice, thanks!! Iā€™ll definitely end up spending some time looking through that to see what I can learn.