Skip to content

FredrikM97/mealplan-card

Repository files navigation

MealPlanCard

Home Assistant GitHub Release License Downloads Build Status Code Coverage Documentation Status Open in Dev Containers

About

A HACS card for Home Assistant to monitor and control your pet feeder using a meal_plan base64 format. This card is designed for Tuya Mealplan data, but can work for other feeders if they use a compatible meal_plan/schedule entity. Support both hex and base64 data. This integration work best with Tuya-local

If your device is missing from the list feel free to open an issue with related info and it will be added.

Add to HACS.

Features

  • See next scheduled feeding and total food for today
  • Add, edit, and delete feeding times with or without day selection
  • Supports meal_plan data with days and without days
  • Card configuration and meal plan persist over Home Assistant restarts and reloads
  • Light and dark mode

How it works

The card expects a base64 string (example: 'fwQAAQB/CQACAX8PAAEBfxUAAgEIEgABAA=='). This string is decoded and allows edits in two supported formats:

With days:

[
  { "time": "04:00", "days": 127, "portion": 1, "enabled": false },
  { "time": "09:00", "days": 127, "portion": 2, "enabled": true },
  { "time": "15:00", "days": 127, "portion": 1, "enabled": true },
  { "time": "21:00", "days": 127, "portion": 2, "enabled": true },
  { "time": "18:00", "days": 8, "portion": 1, "enabled": false }
]

When the user makes changes and presses save on the schedule view, the config is updated and sent to the Tuya cloud. The implementation reduces the delay for actions compared to Smart Life and allows seamless integration with Home Assistant for Tuya feeders with a meal_plan configuration.

Installation

  1. Click the Add to HACS button above, or manually add this repository as a custom repository in HACS (category: Lovelace).
  2. Find "Mealplan Card" in HACS under Frontend and install it.
  3. Search for Mealplan Pet Feeder in the card selector view. After update ensure to hard refresh page/clean cache

Support

For issues, feature requests, or contributions, please open an issue or pull request on GitHub.