Zabbix Template for Home Assistant 🚀

Hello Home Assistant Community,
I would like to introduce a Zabbix template that simplifies monitoring your Home Assistant environment. This template is designed for Zabbix 7.0 (or higher) and provides practical features for comprehensive monitoring.


Features

This template monitors the following:

Item Description
Automations Monitors active automations in Home Assistant. Helps detect faulty or blocked automations.
Battery Status Checks the battery level of battery-powered devices, such as sensors or remotes. Alerts on low battery.
Cameras Monitors the status of cameras integrated with Home Assistant, including optional reachability and video streams.
Contact Sensors Tracks the state of contact sensors (e.g., doors and windows).
Firmware Updates Checks for available firmware updates for connected devices.
Humidity Sensors Monitors current humidity levels in supervised rooms.
Temperature Sensors Tracks temperature values from Home Assistant.
Air Pressure Monitors the current air pressure readings from Home Assistant sensors. Useful for weather monitoring and trend analysis.
Person Zone Assignment Tracks which zone (e.g., Home, Work) a person is currently assigned to, based on GPS location.
Zone Radius Monitors the radius size of configured zones in Home Assistant. Helps ensure accurate geofencing.
Longitude Displays the longitude of a configured zone. Useful for precise geolocation settings.
Latitude Displays the latitude of a configured zone. Useful for precise geolocation settings.
Home Assistant Updates Monitors the Home Assistant version. Sends notifications when updates are available.
Power Consumption Tracks the energy usage of connected devices (e.g., smart plugs). Useful for analyzing power consumption.
Weather Forecast Integrates weather forecast data from Home Assistant, including temperature, rain probability, and wind speed.
Zigbee Link Quality Monitors the signal quality of Zigbee devices. Helps identify connection issues or interference.
Occupancy Tracks whether a room or area is currently occupied, using motion or presence sensors.
Illuminance Monitors the light level (lux) in a room or area, useful for automations like adjusting lights.
PM2.5 Tracks fine particulate matter (PM2.5) concentration in the air, important for air quality monitoring.
VOC Monitors volatile organic compounds (VOC) levels, helping to ensure good indoor air quality.
  • Supports Home Assistant updates.
  • Includes macros for easy API token and URL configuration.

What’s Included

  • A ready-to-import Zabbix Template (.yaml file).
  • Predefined macros for easy setup:
    • {$API.TOKEN}: Your Home Assistant API token.
    • {$HA.URL}: The URL of your Home Assistant instance.

Requirements

  • Zabbix Server version 7.0 or higher.
  • Home Assistant API token.

Setup

  1. Download the template from the GitHub repository: [GitHub Link].
  2. Import the .yaml file into Zabbix.
  3. Adjust the macros ({$API.TOKEN} and {$HA.URL}).
  4. Link the template to your Home Assistant host in Zabbix.

2 Likes

Hey Garfieldtt,
thanks a lot for the effort - just in time for me to try and test, since I’ve just installed Zabbix on my network :slight_smile:

Got an issue though, after configuring as per the instruction above, in a Discovery → Hosts → Homeassistant, all the items (apart from first “Floats discovery”) are marked as “Not supported” with the following errorl:
Response code “404” did not match any of the required status codes “200”
{“body”:“404: Not Found”}

Do I need to do anything on HomeAssistant side (apart from generating API token?

Regards,
PG

Hello pgobi PG, I have written down the necessary steps for you.
I hope this helps you move forward.

  1. Go to Data Collection Templates and import the template Home Assistant - Zabbix.
  2. Click on the template name Home Assistant - Zabbix and navigate to the Macros section.
  3. Enter the following values:
    • {$HA.URL}: Your Home Assistant URL
    • {$API.TOKEN}: Your API token
    • Then click Update (as shown in the image).

  1. Create a new host:

    • Go to Monitoring > Hosts.
    • Click Create Host in the top right corner.
  2. Assign a name to the host, e.g., HomeAssistant.

  3. In the Templates section, link the Home Assistant - Zabbix template and then click Update.