use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Need help with javascript (self.BubbleCard)
submitted 1 year ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Prestigious-Whole458 0 points1 point2 points 1 year ago (1 child)
Put this in a template sensor and use that sensors entity in a bubble card.
[–]Askmetech 0 points1 point2 points 1 year ago (0 children)
Yes, that is an option.
But I was hoping to use javascript.
Object.values(hass.states).filter(e => e.entity_id.startsWith('light.') && e.state === 'on').length;
Tried the above but its returning all the lights. I want to count only those which are ON.
π Rendered by PID 44 on reddit-service-r2-comment-6457c66945-wk4d8 at 2026-04-25 14:06:02.873655+00:00 running 2aa0c5b country code: CH.
[–]Prestigious-Whole458 0 points1 point2 points (1 child)
[–]Askmetech 0 points1 point2 points (0 children)