Skip to content

ESP32 controlling sprinkler valves through MQTT

License

Notifications You must be signed in to change notification settings

pilotak/LazyGardener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LazyGardener

An open-source ESP32 based sprinkler controller board. It has 24AC power supply built-in for sprinkle valves as well as 5V for providing power to relays and processor, just plug into 230V power outlet. Power supply is made out of analog transformers so it's radio-amateur frindly to compare with switching supplies which generate a lot radio noise.

It has been designed in Arduino IDE so it's easily hackable.

Main features

  • MQTT powered, JSON used
  • HomeAssistant ready, or any other MQTT based smarthome apps ie. Domoticz
  • Arduino OTA enabled
  • 6 channel relays
    • Each channel has its timeout, so once switched on it will automatically turns off
    • Only one channel is switched on at the time to preserve pressure in water system (useful if you have pipes too far from pump)
    • LED indication of each channel
  • Yellow LED
    • Off: no Wifi, no MQTT connection
    • Blinking: connected to Wifi but no MQTT connection
    • On: Wifi and MQTT connected

The reason why ESP32 was chosen it that once Bluetooth stack is available from Espressif it will behave as a Bluetooth to MQTT bridge for Xiaomi Mi Flora.

In order to compile, you need to install following libraries ans rename setting.example.h to setting.h

Configuration.yaml for HomeAssistant

switch:
  - platform: mqtt
    name: "LazyGardener_herbs"
    state_topic: "LazyGardener/state"
    command_topic: "LazyGardener/cmd"
    payload_on: '{"valve":2,"state":1}'
    payload_off: '{"valve":2,"state":0}'
    optimistic: false
    qos: 1

Releases

No releases published

Packages

No packages published