Hey everyone, welcome back!
This time, Iโm going to show you how to monitor your plants in Home Assistant. By combining a few clever components, you can create a great overview of your plantsโ condition โ and even get notifications when, for example, they need water.
Letโs jump right in!
โญโญโญ NOTE: โญโญโญ
This article is the script for a YouTube video. I wrote it before recording the video. You can help me continue doing this by checking out the video, commenting on it, giving it a thumbs up, andย subscribing to my YouTube channel. This will ensure that the video is offered more frequently to new visitors, allowing them to stay informed about the latest Home Assistant tutorials and smart home-related product reviews.
I appreciate your support!
Ed
๐ Click here to watch the video
Now, in my house, almost everything is already automated. But there are always those little projects you keep thinking, โI should really try that someday.โ Iโll admit, plant monitoring might not be the first thing youโd want to automate in your smart home, but itโs really fun to see how your plants are doing and to get alerts when they need a little attention.
Thereโs a great website called OpenPlantbook that has tons of information about all kinds of plants. That means you can automatically pull in the right parameters for each plant in your home.
๐ฟ What do we need?
To monitor our plants, weโll need a few things.
First, youโll need a plant sensor. Iโm using these Zigbee plant sensorsโthey measure soil moisture, humidity, and temperature, and include a light sensor.
Some models also measure conductivity, but those are usually a bit more expensive. I used to have sensors without a light sensor, but I definitely recommend getting ones with a light sensor so you can also check if your plants are getting enough light where they are.
Iโve connected mine to Home Assistant using Zigbee2MQTT, but they should also work with ZHA. If youโve managed to connect them with ZHA, let me know in the comments!
You can find these sensors on AliExpress, and Iโve included links in the video description.
Besides the hardware, weโll also use a few integrations and a dashboard card.
First, make sure HACS is installed. If you havenโt done that yet, check out my other video where I explain how to do it. Thereโs a link in the description.
Once HACS is installed, youโll need to add a few things:
- First, you need the OpenPlantbook Integration
- Add the OpenPlantbook URL as a custom repository in HACS.
- Then install the integration.
- Youโll find the URL in the description of the video:
๐ https://github.com/Olen/home-assistant-openplantbook
- Then, install the Plant Monitor Integration
- This works the same as installing the OpenPlantbook integration: add it as a custom repository first, then install it.
- Youโll find the URL in the description of the video:
๐ https://github.com/Olen/homeassistant-plant/
- And finally, install the Flower Card
- Again, add the repository to HACS, then install the card.
- Youโll find the URLs of all the repositories in the description of the video:
๐ https://github.com/Olen/lovelace-flower-card
๐ชด Displaying your plants
Once everythingโs installed, we can finally show our plants on the dashboard!
First, we need to install OpenPlantbook in Home Assistant itself. For that, get an API key at the OpenPlantbook website. Then install OpenPlantbook in Home Assistant and enter your API credentials.
Of course, you first need to add your plant sensor to Zigbee2MQTT or ZHA so that Home Assistant can see it.
When your sensor shows up in Home Assistant, add your plant to the Plant Monitor integration.
You can give your plant a name, choose the species (so OpenPlantbook can identify it), and then select all the sensor entities your device provides.
In my case, I can select everything except conductivity, because my sensor doesnโt measure that.
If your plant is found in OpenPlantbook, all the ideal growing conditions are automatically imported, which is super convenient!
It might take a few minutes for the data to become visible in Home Assistant, so be patient.
The Plant Monitor integration can also detect when somethingโs wrong, for example, if your plant doesnโt get enough light or water.
You can set this up by adjusting the device options and choosing which sensors should trigger alerts.
Now that your plant has been added, letโs add it to your dashboard.
Open one of your dashboards, add a new card, and choose the Flower Card.
If you donโt see it yet, try clearing your browser cache or restarting Home Assistant.
Select your just-integrated plant in the Flower Card and choose which data you want to display.
You can also link a battery sensor for the plant sensorโs battery level.
My sensors donโt report exact percentages. They just show low, middle, or high.
So, I created a Template Sensor Helper that converts those values into percentages (19, 39, and 40).
If your Zigbee sensor does show actual percentages, let me know in the comments. Iโd love to hear about it!
And thatโs it!
From now on, you can see your plants right on your dashboard.
You can even create an automation that triggers when soil moisture drops below a set level and sends you a message. Iโve got another tutorial that shows how to do that.
Thanks so much for watching!
I hope this tutorial was helpful. Let me know in the comments if you try it out.
If youโd like to support the channel, just like these awesome people, you can do so via Patreon, Ko-Fi, or by becoming a paid member right here on YouTube.
That really helps me keep making videos like this one! Links are in the description.
And donโt forget to like this video and subscribe to the channel so you donโt miss any new tutorials.
See you soon in my next video!
Bye Bye๐ฑ
Aliexpress link: https://s.click.aliexpress.com/e/_c3gDabT9
Keywords:
Home Assistant, Plant Monitoring, Zigbee Plant Sensor, OpenPlantbook, Flower Card, Home Assistant Dashboard, Smart Home Plants, Home Automation, Soil Moisture Sensor, Plant Automation, Home Assistant Tutorial, HACS Integration, Zigbee2MQTT, ZHA, Plant Sensor Setup, Automated Plant Care, Smart Garden, Home Assistant Plants, Plant Alerts, Indoor Plants Automation, Home Assistant Automation, Smart Home Tutorial, Home Assistant Guide, Plant Dashboard, Home Assistant Integrations
ment below!
