I created tiles for my rooms. As there are several devices in the same room, I had to repeat the same code several times, which I found redundant. Merci!
At the same time as @kkaapp . I was working to create a tile for my rooms. I had a problem because not all rooms have the same number of devices. So @kkaapp published the code for his tiles and I saw that it used a boolean dummy for entities not present, thank you @kkaapp .
The service requires an entity_id. If you don’t specify anything, SAK will use the entity_id for which entity_index is specified. An entity_index won’t work.
The state will be passed to the parameter specified, ie the percentage.
i dont wanna specify. i wanna do on the number of the entity_index.
I think I’m too new and too stupid to implement this. everything i tried on the slider didn’t work. thank you very much for trying to help me.
Much more compact than the previous cards I made. These fit nicely on my phone.
At first, I wanted to make an integrated dashboard, but this was enough for my needs.
Three variations.
the first with a typical Awair display. Just the score and the five sensors (you must know which one is which)
The second one adds icons to help you see what is what. The circles are a bit small to fit everything in the space I have for those visual elements
The third breaks with the typical Awair display, and uses rounded rectangles, which are better visible than the smaller circles.
Be aware though that Awair has some special grading for temperature and humidity. They define multiple ranges that show the same color. Effectively a special type of colorstop that includes ranks and is displayed in that order.
A normal colorstop would show 9 values, and start with a red color. In this case the ranking (0…4) determines the display, so you see 5 grades for each sensor.
Green for instance is a temperature between 18 and (up to/including) 25 degrees Celsius.
I have no idea how Netatmo works in this regard. Of course, you can use the same colorstops and ranking. The card will just display the sensor data as if it was coming from an Awair Element!
The colorstops for each sensor are fixed (I use a colorstop template, but it is not a template variable) Of course you can replace the fixed color stop template with a variable, so you can choose the colorstop that is used.
Below you can see the used colorstop for the temperature:
If the hex colors would be replaced by CSS Variables that are defined in a color swatch, you could even redefine the used colors for all these cards without having to change the colorstop…
For completeness, the view definition for such a card:
Not yet released, so nowhere other than some Github repo and my own computer
I might release a dev version, so that you can play. But don’t expect (yet) stability as I’m still changing things to be better maintainable, and/or support for templates.
I think I just completed a major configuration change (again) to make additions in the future easier for the sparkline tool.
After hours of changing software, views, and templates, it was time to make some cards again. Much more fun than changing configurations…
These cards are actually made for Awair sensors, but now I think it can do this for any (analog) sensor, as long as you pass the right colorstops. As you can see, you can also pass the sparkline chart type, chart variant, and of course the scale (only max at this moment for the segmented arc).
The chart types are:
Graded / rank_order chart which shows the typical Awair circles
If you have prereleases enabled in HACS, you can download this prerelease.
Note that you must also download the ha-config part to get the new functional card examples, series 2.
As a slight breaking change:
The folder structure has changed to make fetching templates more reliable. These seem to be fetched in alphabetical order, so I renamed the folders to ensure that dependencies are loaded before the layout templates that use them!
I prefixed all SAK templates with sak-. The layouts already had this prefix. Now the other templates have this too! Some ppl got their files overwritten with each download, as the names were the same.