Prerequisites

To build this setup, you will need:

Principle

The dispenser consists of a 12v motor that rotates a threaded rod to which a tray is attached.

The tray is locked in rotation by two thin rods at the base of the dispenser.

Consequently, depending on the rotation direction of the motor, the tray goes down or up.

A larger diameter tube surrounds everything to collect the food and pours it at the base through a spout.

The dispenser is connected to Jeedom via an ESP8266 and actuates the double relay on HTTP request.

Dispenser 1
Dispenser 2
Dispenser 3
Relay diagram

Wiring

Code

Github

Jeedom

Create a script to communicate with the esp8266 of the dispenser:

Jeedom script

Create a virtual to interact with the previous script:

Jeedom virtual

Create a scenario to automate food distribution:

Jeedom scenario
Dashboard

Result