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 : Change color if value under xx and send notification #52

Open
abdelhadj opened this issue Jan 23, 2022 · 1 comment
Open

Comments

@abdelhadj
Copy link

Hello,
thank you for the module, i am using it for Mi Flora sensor to retrive moisture.
i would like to put the text in red if value is under 15, and green between 15 and 60, is there other argument than UpTo?

also is it possible to create notification or alerte to send to MM like " please water the plant" ?

Thank you :)

@ottopaulsen
Copy link
Owner

I believe you should get the colors you want with this:

colors: [            
    { upTo: 15, value: "red", label: "red", suffix: "red" },
    { upTo: 60, value: "green", label: "green", suffix: "green" },
    { upTo: 1000, value: "blue", label: "blue", suffix: "blue" },
]

Just change 1000 with something that is higher than max possible, and use the color you want.

You could maybe get an alert displayed with sending it as a value, but there is no special feature for that.

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