As you can tel from the name I am very new to this. I decided at 61 I need to challenge myself to start a new hobby and this looked the perfect fit after having sonoff products for a few years. Three plus weeks in and OMG what cant HA do!! I am in awe of the amount of codes flying about on here to enable all sorts of intergrations, only thing is I havent got a clue what I am doing. Is there a novice page anywhere? I have managed to copy a bit of code from somewhere (forgotten where) and put it in a template card to count how many of my lights are on.
{{ states.outlet|selectattr('state','equalto','on')|list|length }}
Is there any way of showing how many are on in bed 1 or in the longe etc this just counts all of the lights. Any help will be appreciated.
Thanks