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

Hide module based on controlsensor #21

Open
hesspoint opened this issue Jan 20, 2024 · 1 comment
Open

Hide module based on controlsensor #21

hesspoint opened this issue Jan 20, 2024 · 1 comment

Comments

@hesspoint
Copy link

hesspoint commented Jan 20, 2024

I want to show a module with open windows. But I only want to show the ones that are actually open and hide the module entirely if none of them are open.

The controlsensor variable lets me do that and it works nicely. I just have a question how to set the controlsensorvalue to >0 (so it shows if 1 or more windows are open). I tried things like this

controlsensor: "sensor.doors_windows_open",
controlsensorvalue: ">0",

But it won't let me do that. It only works if I put an exact number. How can I do that?

Thanks

@Snille
Copy link
Owner

Snille commented Jun 30, 2024

Hi, I have not been developing this module for some time... :)
However, I just re-wrote the "get ha sensors-code"...
If you checkout the "dev" branch, I have moved down the "control-sensor" to the "values-array"... But I'm not sure if that helps your case. I think the easiest way to solve this is to make a "helper" sensor in HA that is set to "1" as long as any window is open.. :)

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

2 participants