Add water leak sensor alerting docs to HA and Zabbix pages
@@ -41,3 +41,23 @@ virt-install \
|
|||||||
|
|
||||||
- If boot fails, disable Secure Boot in UEFI firmware settings ([reference](https://www.reddit.com/r/homeassistant/comments/198yg1a/trying_to_install_ha_as_a_virtual_machine_in/))
|
- If boot fails, disable Secure Boot in UEFI firmware settings ([reference](https://www.reddit.com/r/homeassistant/comments/198yg1a/trying_to_install_ha_as_a_virtual_machine_in/))
|
||||||
- Find assigned IP at router admin panel
|
- Find assigned IP at router admin panel
|
||||||
|
|
||||||
|
## Zabbix Alerting
|
||||||
|
|
||||||
|
HA pushes alerts to Zabbix via `rest_command` → Zabbix `history.push` API (trapper items).
|
||||||
|
|
||||||
|
### Water Leak Sensors
|
||||||
|
|
||||||
|
3x HOBEIAN ZG-222Z Zigbee moisture sensors:
|
||||||
|
|
||||||
|
| Entity | Room |
|
||||||
|
|--------|------|
|
||||||
|
| `binary_sensor.hobeian_zg_222z` | Kitchen |
|
||||||
|
| `binary_sensor.hobeian_zg_222z_2` | Bathroom |
|
||||||
|
| `binary_sensor.hobeian_zg_222z_3` | Laundry |
|
||||||
|
|
||||||
|
- Sensor ON → automation sends room name to Zabbix trapper item `water.leak` on host "HA Agap"
|
||||||
|
- Zabbix trigger fires Disaster alert: "Water leak detected in {room}"
|
||||||
|
- All sensors OFF → automation sends "ok" to clear
|
||||||
|
|
||||||
|
Config: `rest_command` entries in `configuration.yaml`, automations `water_leak_alert` and `water_leak_clear`.
|
||||||
|
|||||||
10
Zabbix.md
10
Zabbix.md
@@ -51,6 +51,16 @@ cd agap_git/zabbix
|
|||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## HA Trapper Items
|
||||||
|
|
||||||
|
Host "HA Agap" receives alerts from Home Assistant via `history.push` API.
|
||||||
|
|
||||||
|
| Item Key | Type | Trigger | Severity |
|
||||||
|
|----------|------|---------|----------|
|
||||||
|
| `water.leak` | Text trapper | `last() <> "ok"` → "Water leak detected in {room}" | Disaster |
|
||||||
|
|
||||||
|
To add a new HA alert: create a trapper item + trigger on "HA Agap", add `rest_command` in HA `configuration.yaml`, create HA automation to call it.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- Zabbix server port 10051 is exposed on the host for the host agent
|
- Zabbix server port 10051 is exposed on the host for the host agent
|
||||||
|
|||||||
Reference in New Issue
Block a user