Pump length, mqtt improvements

This commit is contained in:
2021-06-20 21:29:13 +02:00
parent 9c01025058
commit 39adfd7cef
3 changed files with 54 additions and 14 deletions

15
irrigation/README.md Normal file
View File

@@ -0,0 +1,15 @@
# Irrigation with an ESP8266
Tested with D1 mini. Connect a pump with a relais. Relais activation on D4.
## Homeassistant integration
payload_on can also contain the duration of the pump in ms.
Example:
`
switch 5:
- platform: mqtt
command_topic: greenhousino/pump
state_topic: greenhousino/pumpstate
payload_on: "on"
payload_off: "off"
name: "Pumpe"
`