ha-appliance-electromenager-cards

Pet feeder

custom:appliance-pet-feeder-card

Pet feeder with a cut-out photo of the Aqara Smart Pet Feeder C1 (model: aqara_c1, Zigbee2MQTT ZNCWWSQ01LM). All entities are optional.

Animations: kibbles fall from the hatch into the bowl while it feeds, the pile in the bowl grows with the portions of the day, the screen lights up, the screen blinks red on error, a padlock shows when the child lock is on. A feed is detected when you press the button or when the portions of the day increase.

Buttons: Feed, LED indicator, child lock. A click on the Mode tile switches between manual and schedule.

Options

Example

type: custom:appliance-pet-feeder-card
model: aqara_c1
entity_feed: select.aqara_feeder_feed
entity_portions: sensor.aqara_feeder_portions_per_day
entity_weight: sensor.aqara_feeder_weight_per_day
entity_serving: number.aqara_feeder_serving_size
entity_portion_weight: number.aqara_feeder_portion_weight
entity_source: sensor.aqara_feeder_feeding_source
entity_error: binary_sensor.aqara_feeder_error
entity_led: switch.aqara_feeder_led_indicator
entity_child_lock: switch.aqara_feeder_child_lock
entity_mode: select.aqara_feeder_mode

Food reserve (hopper level and autonomy)

Most feeders cannot measure the food left, so the card reads a helper you keep up to date: an input_number (grams left; or a number / sensor, in grams or in %).

type: custom:appliance-pet-feeder-card
entity_feed: select.aqara_feeder_feed
entity_level: input_number.feeder_hopper_grams
hopper_capacity: 1500
daily_consumption: 50
food_low: 25

To lower the level automatically after each meal, create the helper input_number.feeder_hopper_grams (min 0, max 1500, step 1, unit g) and this automation, which subtracts the grams served (increase of the weight of the day):

alias: Feeder hopper level
triggers:
  - trigger: state
    entity_id: sensor.aqara_feeder_weight_per_day
conditions:
  - condition: template
    value_template: ""
actions:
  - action: input_number.set_value
    target:
      entity_id: input_number.feeder_hopper_grams
    data:
      value: >