jimmy-landry / HA-Mobile-Dashboard-Config

A mobile Home Assistant dashboard inspired by LE0N's Rounded theme
79 stars 10 forks source link

Custom sensors #5

Closed KarimSouilmi closed 1 week ago

KarimSouilmi commented 3 weeks ago

Hi Jimmy,

Thnx a lot for posting this beautiful dashboard.

Correct me if I'm wrong but is a sensor like sensor.pending_update_counter and light.active_bedroom_lights a custom sensor?

If yes can you post the code of all custom sensors?

Thnx in advance.

Karim

xagravel commented 3 weeks ago

+1

jimmy-landry commented 3 weeks ago

Yes--those are all custom sensors. Check issue #1 for the pending updates counter, because there's a couple different ways you can do it. As for the active bedroom lights, I was able to get that working by following this community thread. Add your entities in the regular group, use that group in the custom light template, and you should be good to go.

KarimSouilmi commented 1 week ago

Thnx for your response.

I got the update entitie working by this code:

{{states.update | selectattr('state', 'eq', 'on') | list | count}}