MMM-MQTT icon indicating copy to clipboard operation
MMM-MQTT copied to clipboard

Question : Change color if value under xx and send notification

Open abdelhadj opened this issue 3 years ago • 1 comments

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 :)

abdelhadj avatar Jan 23 '22 17:01 abdelhadj

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.

ottopaulsen avatar Jan 23 '22 19:01 ottopaulsen