custom:appliance-irrigation-card

A garden watering card with generic entities (no brand): 1 to 8 zones, a well pump, a rain sensor, soil moisture. A sprinkler head is drawn per zone and sprays when its zone is on; a cloud and raindrops appear when it rains; the pump LED blinks when the pump runs.
valve (open / close), switch, input_boolean.block_on_rain: true, a zone can no longer be started from the card while the rain sensor is on (stopping stays possible). This only blocks the card: keep a rain condition in your automations too.| Option | What it does |
|---|---|
zones |
list of entities (valve, switch, input_boolean), up to 8. Each can also be {entity, name, icon, x, y}: name renames the button (long names wrap on two lines), icon is any mdi: icon, x / y place the zone on your image (see image). The visual editor lists them one by one (Home Assistant 2024.12 or later; older versions show the YAML) |
image |
your own picture or plan (/local/garden.jpg, /api/image/... or a URL) shown instead of the drawing. A zone with x and y becomes a round button placed on the image (lit and pulsing while it waters); the other zones stay as buttons below |
marker_names |
with image: shows the name of each zone next to its marker (default false, the name is then the tooltip) |
entity_pump |
well pump (switch, input_boolean or binary_sensor) |
pump_x, pump_y, pump_icon |
with image and entity_pump: places a round pump button on the image (x / y in %, pump_icon defaults to mdi:pump); lit while the pump runs. Tap = on / off for a switch / input_boolean, otherwise opens the entity |
entity_master |
« Auto watering » switch (on = enabled), shown as a button |
entity_rain |
rain sensor: binary_sensor (on = rain) or sensor (rate above 0) |
block_on_rain |
blocks starting a zone from the card while it rains (default false) |
entity_flow, entity_soil, entity_today, entity_next, entity_pressure, entity_power |
tiles: flow, soil moisture, water today, next run (timestamp or text), pressure, power |
labels |
rename texts, e.g. labels: { pump: "Well", stop: "Stop", auto: "Auto" } shortens the pump, stop and auto button names. With marker_names, a marker near the edge of the image keeps its name inside the image |
compact, show_buttons, show_flow, show_soil, show_today, show_next, show_pressure, show_pump, show_power, show_rain, animations, language, illustration_size, transparent, tap_action, hold_action |
type: custom:appliance-irrigation-card
name: Garden
zones:
- valve.lawn
- valve.vegetable_garden
- valve.hedge
- entity: switch.drip_line
name: Drip
entity_pump: switch.well_pump
entity_rain: binary_sensor.rain_detector
entity_master: input_boolean.auto_watering
block_on_rain: true
entity_soil: sensor.garden_soil_moisture
Your own image with the valves placed on it: x is the distance from the left edge and y from the top edge of the image, in % (0 to 100). Start with a guess (the middle is x: 50, y: 50) and adjust.
type: custom:appliance-irrigation-card
name: Garden
image: /local/garden-plan.jpg
marker_names: true
zones:
- entity: valve.lawn
name: Lawn
icon: mdi:grass
x: 28
y: 64
- entity: valve.pool_edge
name: Pool
icon: mdi:pool
x: 62
y: 22
- entity: switch.drip_line # without x / y: button below the image
name: Drip