Skip to content

machv/esp8266-irrigator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Irrigator controller

HW Parts used:

MQTT

Variable Example Meaning
MQTT_PREFIX zavlazovac/ Left prefix appended to relay's channel, configurable in web interface.
RELAY_INDEX 1 Index of the relay, numbering starts from 1

LWT channel

Last will topic is used to detect availability, messages sent there are with retain tag enabled.

{MQTT_PREFIX}/status
Payload Value Retain
Available Online yes
Not Available Offline sent as LTW

State updates channel

State topic publishes current status of the relays.

{MQTT_PREFIX}/state/{RELAY_INDEX}
Payload Value Retain
Running 1 no
Not running 0 no

Commands channel

Command topic accepts these state request changes and accepts both string ON, OFF or interger 1, 0.

{MQTT_PREFIX}/command/{RELAY_INDEX}/power
Payload Value
Running 1 or ON
Not running 0 or OFF

Flow meter channels

Flow meter updates are sent in format:

{MQTT_PREFIX}/{RELAY_INDEX}/{METRIC}

where {METRIC} is from:

Metric Type Unit
currentFlow float L/s
totalFlow float ml

VS Code tips

You can run your task through Quick Open (Ctrl+P) by typing task, Space and the command name.

Build a solution using Ctrl+Alt+B

About

Simple irrigation controller based on ESP8266.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published