

Yes


Yes
I wasn’t super clear but that’s what I was referring to with the “tried to kill people, and helped feed people instead”.
When he tried to feed people he came up with what eventually was used to make Zyklon-B.
He tried to kill people and ended up helping feed the world, then he tried to feed people and ended up helping the Holocaust. The guy is a fascinating historical figure but definitely a was a monster.


I’m trying to word this kindly yet directly, but the whole chain of additions you’ve done is messed up.
If you just want working code then try the examples in this post but note that you can edit template sensors in the GUI now so directly editing the config file isn’t needed. https://community.home-assistant.io/t/trying-to-show-how-many-lights-are-on/527089/12
For an actual explanation of what’s going wrong with your code I’ll start with this bit, which will not work as written and when fixed doesn’t do what you currently are intending it to do.
I highly suggest reading through this page of documentation while looking over this as it will clarify a lot better than I can.
{{ (states.switch | rejectattr('attributes.light.lamp_left', 'defined') | selectattr('state', 'eq', 'on') | list | count) }}
I’d like to work through this backwards:
count is, as the name implies, counting. It’ll take an input and then spit out a number. In this case, it’s going to count the members of a list piped into it from…
list takes an input object and converts it to a list. In this case it’s creating a list from the output of…
selectattr() is a way to filter an input object based on some criteria. For this we’re filtering the input for only objects with an attribute named state whose value is equal to on. The result should be a group of entities that have a state listed as on. The input it’s filtering from is…
rejectattr() is basically the same as selectattr(), except it removes based on the filtering criteria and outputs everything that didn’t match. This is where your code is failing, and it’s actually not even necessary for this single line to work. I’m assuming you saw example code that used attributes.entity_id and then you replaced the entity_id portion with your targeted entity. This is failing because the rejectattr() filter is looking for the name of what attribute to filter on and its state. This portion is actually doing absolutely nothing even if it’s working, as far as I can tell, because as originally written it would just remove any object with an entity_id named defined. That all said, it’s filtering input from…
states.switch, which is a way to reference and get the state result of every entity in the switch domain. There’s a whole section in the HA documentation I linked about states and how to get them for templates that is very relevant to what you’re doing. In this case, unless your lights are set up as switches, you’d actually want to use states.light.
The end result if you follow this advice will instead give you a single line that counts all lights currently turned on, so no need for adding them all together like your original code. If you only want to know the states of a specific group of your lights then see the forum link from the top of my post that shows how to manually write a group into the template, or alternatively create a helper group in the GUI and reference that.
As I understand it, yes it was a saturated solution.
It makes no sense because that’s not what the 0 of the Fahrenheit scale is. The 0 point is the coldest an ammonium chloride brine mixture can be cooled to. The 90 point was an estimated average for human body temperature (it was adjusted up over time). These were chosen because the goal of the scale was to provide a way for people to have a defined temperature scale with a range and degree size that could be reliably reproduced without passing around standardized tools. 100 is really hot because human bodies were used as a reference for the high end, but the low end has nothing to do with the human body.


Frigate is the go-to open source self hosted solution for this. https://frigate.video/


There is a world of difference between taking issue with someone making a poorly received argument and a government deciding that making that argument is inherently illegal.

So what you’ve demonstrated is that a fraction of less than 1 percent of voters registering in a few states MAY be non-citizens, a number so small it’s barely a rounding error, and that of that small number of people it seems we catch most of them long before they vote. I do not understand why this issue seems worth the effort you’re putting into it.
I’ll concede then that it does and has happened. However, I still think you’re going too far by claiming there’s no consequences while literally linking to attempted convictions.

I’m not the person you responded to and I’ve moved no goalposts. I’m pointing out that you’re misrepresenting reality to make your point. I’m in a state (Georgia) that gives you the option to register to vote when getting or renewing your license. On the form it is simply a checkbox. This seems like a clearly abusable system if you do as you have, which is to look at the surface level of the situation and cry foul, but the underlying reality is different.
In order to get my license I was required to provide documentation of my citizenship (in my case an original birth certificate) as well as evidence of my current address (in my case a utility bill). This underlying evidence is what is used to control my voter registration and prove I’m eligible to vote. Car registration is supposed to be tied to your home address and is handled by parts of the local government that share information, so being given an option to update an address for voting purposes when updating registration makes sense to me. I am not aware of if that is possible on my state. While I do not personally have experience with obtaining a license while not being a citizen and resident of my state, I know that whatever process exists for that doesn’t also allow you to register to vote.
If you’d like one I’ll give you a goalpost. Prove me wrong and show me a single state where a non-citizen can register to vote, go to a polling place and vote, and then have that vote counted.

You’re making it out like states that don’t require a photo ID at the time of filling in a ballot have zero checks on the identity of a voter. I only looked at a few, notably California since you have brought it up, and that is not the case. The identity verification happens during registration and then again under certain conditions.
Even if an undocumented person went to vote in California they’d have to use a provisional ballot and that would of course be checked and rejected.


I’ve used my location history to remember names of places I went to over a year ago, addresses I was given and expected to write down but forgot, confirm for myself I actually went and did something that I couldn’t recall fully…
It’s great for someone with a shite memory.


The dev is also very responsive if you reach out with any issues.


You might be interested in https://linkstack.org/
Y’all love diminutives, call them jiffies?
I can’t cite a source but I read once that the lawyers got involved and said Microsoft/Windows/some other term they have legal control of had to be the first word.


No concerns about the company management being corrupt and working against your interests, though?


Yeah the main lesson I’ve taken away from the last decade of cryptocurrency instability, NFTs, and things like algorithmically generated judicial sentencing guidelines that perpetuated the existing racial biases while making them seem more legitimate because “the computer can’t be wrong” is that we should run our whole society with them.
Misunderstanding on my end then, I made some clearly unfair assumptions. I agree with you there and apologize for the mischaracterization.
The modern definitions of units feel even more arbitrary because they are inextricably tied to more organic origins. Consider the often made fun of fahrenheit scale which was the first to define a reasonably repeatable degree size by using two widely available reference points as the 100 and 0 ends of the scale, human body temperature for the high end and an ammonium chloride ice water mix for the low end.
The definition of a second was a bit jankier. Etymologically the name comes from a second hand added to a watch face to give some kind of indicator that the minutes are passing by. NIST has an excellent writeup on this subject. Over time different repeatable ways to measure a second have been determined all with the goal of having some action a human could use to calibrate their device’s second measurement to so their seconds are as long as everyone else’s.
The point is, we didn’t choose a second to be defined as some number of atomic oscillations. We had an already agreed upon definition of a second that used less precise methods than modern technology demanded and used a natural phenomenon that could be very accurately measured to make a less arbitrary definition.