Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor icons not updating. #228

Open
warrenarnold opened this issue Apr 5, 2021 · 1 comment
Open

Sensor icons not updating. #228

warrenarnold opened this issue Apr 5, 2021 · 1 comment
Labels
enhancement New feature or request planned This will be worked on

Comments

@warrenarnold
Copy link

Hello, thanks for this control, it's great!

One question, can you make the sensors refresh their icons live or allow us to set template icons for them?

I currently have a fan sensor that changes its icon based on the fan speed - but this doesn't show, it just shows the initial icon.

Also can we have an option to 'grey' the entire simple thermostat? I have 10 of these in row (one for each room) and it would be handy to be able to show more clearly which rooms are on.

Screenshot_20210406-073518_Home Assistant

@nervetattoo
Copy link
Owner

Nice looking setup. Thanks for sharing it.
Dynamic icons for the sensors sounds like a neat idea. Will surely look into it.

When it comes to changing colors based on behavior you should do that with card-mod, I don't want to add a lot of styling options. On top of my head I don't remember if there is a class set on the ha-card based on state, but that is something that can easily be added as a styling hook. Should be an easy PR for anyone that want to contribute.

@nervetattoo nervetattoo added enhancement New feature or request planned This will be worked on labels Apr 6, 2021
nervetattoo added a commit that referenced this issue Apr 15, 2021
Far more flexible sensor definitions using templating

- Replace all sensor logic with templates.
- Allow overriding builtins (state, current temperature)
- New sensor properties: `template`, `label`, `entity`. Only `template`
  is required.

Fixes #192, #228
Ref #155
nervetattoo added a commit that referenced this issue May 2, 2021
Far more flexible sensor definitions using templating

- Replace all sensor logic with templates.
- Allow overriding builtins (state, current temperature)
- New sensor properties: `template`, `label`, `entity`. Only `template`
  is required.

Fixes #192, #228
Ref #155
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned This will be worked on
Projects
None yet
Development

No branches or pull requests

2 participants