Home Assistant Community

Plant component: Include max and min values to the plant state attributes


Is it possible to include the min and max values set in config of the plant component into the plant state as attributes? The reason for doing this is that I want to be able to create automations and notifications based on e.g. the minimum moisture or brightness (eg turn on water or light) without having to define min and max levels more than one place, ie in the plant config. Would be very convenient when having several sensors.

I know basic Python, but after looking at the code I see this is a few levels up from my competence level.

Plant component: https://www.home-assistant.io/components/plant/

I guess I would like to have them reported in the list by the red arrow when looking at the plant state:


From your link:

It also supports setting minimum and maximum values for each measurement and will change its state to “problem” if it is not within those limits.

Is that what you want? You could then trigger off that.


I have set minimum and maximum for every measurement. Now I want to read those min and max values…