Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 1.35 KB

README.md

File metadata and controls

43 lines (38 loc) · 1.35 KB

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