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

Sensor value for min_moisture #26

Closed
dingausmwald opened this issue Jul 24, 2022 · 2 comments
Closed

Sensor value for min_moisture #26

dingausmwald opened this issue Jul 24, 2022 · 2 comments

Comments

@dingausmwald
Copy link

Maybe i do something wrong, but i am not able to put a (statistics) sensor value for min_moisture like this

min_moisture: {{ states('sensor.max_feuchtigkeit_sensor_1') | int / 2 }}

my goal is to warn whenever the waterlevel is below half the max moisture.
I created a statistics sensor which does work. But when i paste this in the .yaml the plant cards don't show. There is no error in the logs asswell.

@Olen
Copy link
Owner

Olen commented Jul 26, 2022

I don't think you can use templates in the config like that.

However there is a completely rewritten version coming up soon, where you can more easily select the sensors you want to use - just ensure that they have the correct DeviceClass.

https://github.com/Olen/homeassistant-plant/tree/new_plant

I use "humidity" for both moisture and air humidity in the new version.

https://www.home-assistant.io/integrations/sensor/

@Olen
Copy link
Owner

Olen commented Aug 2, 2022

Closing this as the upcoming release does not support yaml-config anymore

@Olen Olen closed this as completed Aug 2, 2022
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