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

[Question] Entity visibility based on different entity (flexible solution) #452

Open
VivantSenior opened this issue Jun 25, 2024 · 0 comments

Comments

@VivantSenior
Copy link

Hi,

I'm looking for a way to display entities based on different entity but both entities need to belong to the same device. The solution would need to be flexible (using asterisks). Is it possible?

E.g:

First device's entities:
cover.office_left_window_blinds
binary_sensor.office_left_window_blinds_charging_status
sensor.office_left_window_blinds_battery

Second device's entities:
cover.bedroom_left_window_blinds
binary_sensor.bedroom_left_window_blinds_charging_status
sensor.bedroom_left_window_blinds_battery

Pseudocode:

if (binary_sensor.*_blinds_charging_status)
{
    show(sensor.*t_window_blinds_battery);
}

Basically, if a blind is charging show its battery level.

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