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

[Feature Request] - Lock Sensor: Change entity Picture based on its state #54

Open
ChristophCaina opened this issue Dec 31, 2023 · 1 comment

Comments

@ChristophCaina
Copy link
Contributor

I really like the fact, that the sensor for the lock-state sensor is showing a picture, that matches the graphic from SurePet.
image

It would be GREAT, if the sensor could dynamically change the picture based on the state: unlocked / locked_in / locked_out / locked_both

locked_in:
image

locked_out:
image

locked_both:
image

Only for unlocked another / custom picture would be required.

Unfortunately, I haven't seen, where exactly the picture should come from
it seems, that this somehow comes from the attribute entity_picture - which I could not find

self._attr_entity_picture = self._surepy_entity.icon
@ChristophCaina
Copy link
Contributor Author

it seems, that the icon image does change, but it takes increadible long until the picture will be replaced ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant