Skip to content

lkankowski/Irrigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Irrigation System

Prerequisites

  • MQTT Broker or local docker running:
cd docker
docker-compose up -d mosquitto

MQTT protocol

First you need to enter into Mosquitto container:

docker-compose exec mosquitto bash

And now you can execute various commands.

  • View all MQTT traffic on local MQTT Broker:
mosquitto_sub -h 127.0.0.1 -p 1883 -t '#' -v
  • Send Auto message into command topic cmnd/irrigation1/mode:
mosquitto_pub -h 127.0.0.1 -p 1883 -t 'cmnd/irrigation1/mode' -m 'Auto'

Clear retained message:

mosquitto_pub -h 127.0.0.1 -p 1883 -t 'homeassistant/select/irrigation1_zone_thujas/config' -n -r
  • Temporary exit command:
mosquitto_pub -h 127.0.0.1 -p 1883 -t 'cmnd/irrigation1/exit' -m 'exit'

Inspirations & other sources

Notes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages