Let me know how many lights you have in your house!
@PosiCat6 ай бұрын
Only 15 lights (a lot are dumb bulbs controlled by switches ... 61 switches) but I do have 622 sensors
@desertaip91376 ай бұрын
Took some time to add the labels, I have 87 legitimate lights :-)
@emms-place6 ай бұрын
Another awesome video in the series. These videos have been really help full to me. Keep up the good work. I have 47 lights in my setup
@robertdon-duncan79546 ай бұрын
Another great video! Thanks again, it really does open up endless possibilities. One thing I've recently been doing is wrapping this up in a script and passing the label as a variable, so I can ask the same question but for various devices (again all mainly learned from your videos)! I really think you've found your niche in these videos, nothing really out there that helps explain the art of the possible in a simple way! Thanks so much
@edwaaij47526 ай бұрын
Another educational video. However, there is so much more to tell about Jinja. Please continue this series.
@peterturcan10623 ай бұрын
great tutorials about HA! thank you!. what kind of smart bulbs do you use? I expect they are well integrated into HA
@sevagjb6 ай бұрын
as always brilliant ❤ I advise everyone to go immediately to ko-fi👌
@SmartHomeJunkie6 ай бұрын
Thank you for your support 🙏🏻
@jfs436 ай бұрын
That's a very useful video, I really like the approach of using labels. Could you give any examples of using 'browser mod' to click on a dashboard icon that shows your 'Lights On' count that then brings up a sub-view listing the light names?
@desertaip91376 ай бұрын
Fantastic tutorial. I changed my kludgy method of counting numbers of doors and windows opened and closed in my security system into two elegant code lines! Thank you! My device battery monitor sensor is now 6 lines of code instead of 64 My leak sensor code is 4 lines I stead of 32
@SmartHomeJunkie6 ай бұрын
Awesome! I will try to add some extra functionality in the next episode.
@desertaip91376 ай бұрын
@@SmartHomeJunkie using the label is really brilliant. If I add a new device I just have to add the label to it and it's automatically included. No code change to the sensor or automations!
@SmartHomeJunkie6 ай бұрын
@@desertaip9137 Yes, it is. I must say that TheFes helped me with the idea!
@daveforrester615 ай бұрын
So it turns out I have 210 light entities 😂. Rather than reject those that I didn't want, I created a Label 'Light Group', assigned that to all the lights I wanted to count and selected those that are on. This gives me 27 total lights. Some of those are light fittings with multiple luminaires, but I don't want to count all the individual luminaires. Another really good walk through thanks. Labels are proving to be really useful.
@bkflagАй бұрын
I found it counter intuitive to exclude a bunch of labels as well. Can you share how you just included the label you wanted in the count?
@DavHill773 ай бұрын
Great content 😊
@grahamshaw55316 ай бұрын
I have about 24 lights a mix of smart bulbs & Smart switches. According to Mushroom overview 12 are on.
@iamrenzotoo4 күн бұрын
Great! And I understand it, but I can't overview the posibilities. What is there in Home Assistant to do with all these jinja commands? Perhaps a new video? :)
@SmartHomeJunkie4 күн бұрын
You might want to start with episode 1 to understand it.
@wwolfram336 ай бұрын
Perfect timing - I was looking how to show how many lights are on within a dashboard. Is it possible to show the names of which ones have the state = ON in a dashboard?
@SmartHomeJunkie6 ай бұрын
I'll try to add that request to the next video.
@major_west6 ай бұрын
64 is a boat load of smart lights! We have only have 34, with maybe 10 more that could be made smart.
@birddroppings326 ай бұрын
I definitely appreciate these territorials and look forward to more, thanks. But, the example case seem very silly. If I'm leaving the house and wanted to know if any lights were on, I would rather see where/what light not just a number of lights that are on anywhere in my house... Then have to go find where/what light/s are on because it only tells me "x6 lights are on in the house somewhere". Seems way more logical to have all lights grouped by rooms they are in then check and report what group is still on when leaving. eg, lounge group on means that a light/s is on in the lounge then, hit the 'turn off lounge lights button' - knowing how many lights are on is pointless. That being said, you can set up automation to check when house goes to unoccupied state and turn off lights automatically, making it a truly smart home. If there are specific lights you like to stay on when away, then create a boolean input 'away lights stay on' and configure the automation to turn off all lights except these specific lights if 'away lights stay on' is on.
@SmartHomeJunkie6 ай бұрын
So. Just add a filter for your area and only the lights in that area are taken into account. I think you can do it yourself based on the tutorials in this series.
@squalazzo5 ай бұрын
please add this episode to your jinjia2 playlist, which seems to have only till 5th episode
@SmartHomeJunkie5 ай бұрын
Hey, thanks for pointing that out! I'll get the missing episode added to the jinjia2 playlist pronto.
@cedricdelecole39646 ай бұрын
Hi there, Nothing to do with this, but was looking for a way to bui build / store a LIST of items (like the last 5 phone numbers + timestamp) - using an helper ?? Then HOW to display that list on a dashboard ? This would be for a project to display missed calls on my dashboard ... many thanks !
@SmartHomeJunkie6 ай бұрын
I'll try to add this to a future episode.
@danielshiloah14856 ай бұрын
Great video as usual! Thanks for all the work you do! My lights in the house are a mix of light and switches domains. The use of labels is genius and was able to label all entities that are actually lights (either bulbs, switches (L/R), led strips). But i cant figure out how to add the switch domain list with the light domain list before i start filtering for labels and then state.... can you show us how to?
@SmartHomeJunkie6 ай бұрын
You can use the "change device type of a switch " helper to turn a switch into a light so that it will be recognized as being part of a light domain.