Dear community,
I was rather proficient in openhab but I’m quite new to home assistant.
Maybe to help you understand what I I’m trying to achieve I’m will quickly explain how it worked in openhab. I do have a hunter irrigation control. I have three zones for drip irrigation and three zones for lawn irrigation. Drip irrigation can work 3 areas at the same time for lawn irrigation I have to run them separately so for lawn irrigation I will be able to start the lawn irrigation. I could also set the time from 5 to 30 minutes. Once the switch is actuated it will go for 10 minutes zone one then 10 minutes zone 2 and finally 10 minutes zone 3 and stop in the end. Also I was able to automatically start the lawn irrigation at sunrise. Once the irrigation started it would show me a timer displaying how much time is remaining for each zone and which zone is currently irrigating.
For drip irrigation it was much easier I could just set a time and then it would start all three circles simultaneously. It is controlled via NodeMCU and MQTT.
Now with home assistant it seems to be so much harder let me explain how far i got until now.
I’ve successfully added MQTT and I can control them via Lovelace using each switch.
This is how my config.yaml looks like:
#mqtt
switch:
- platform: mqtt
unique_id: Rasenbewässerung Hochbeet Nord
name: "Rasenbewässerung Hochbeet Nord"
state_topic: mqtt/irrigation/relay1/state
command_topic: mqtt/irrigation/relay1/switch
payload_on: "1"
payload_off: "0"
state_on: "ON"
state_off: "OFF"
- platform: mqtt
unique_id: Tropfbewässerung Terrasse
state_topic: mqtt/irrigation/relay2/state
command_topic: mqtt/irrigation/relay2/switch
payload_on: "1"
payload_off: "0"
state_on: "ON"
state_off: "OFF"
name: "Tropfbewässerung Terrasse"
- platform: mqtt
unique_id: Tropfbewässerung Haus
state_topic: mqtt/irrigation/relay3/state
command_topic: mqtt/irrigation/relay3/switch
payload_on: "1"
payload_off: "0"
state_on: "ON"
state_off: "OFF"
name: "Tropfbewässerung Haus"
- platform: mqtt
unique_id: Tropfbewässerung Hochbeet
state_topic: mqtt/irrigation/relay4/state
command_topic: mqtt/irrigation/relay4/switch
payload_on: "1"
payload_off: "0"
state_on: "ON"
state_off: "OFF"
name: "Tropfbewässerung Hochbeet"
- platform: mqtt
unique_id: Rasenbewässerung Terrasse
state_topic: mqtt/irrigation/relay5/state
command_topic: mqtt/irrigation/relay5/switch
payload_on: "1"
payload_off: "0"
state_on: "ON"
state_off: "OFF"
name: "Rasenbewässerung Terrasse"
- platform: mqtt
unique_id: Dummy Switch 6
state_topic: mqtt/irrigation/relay6/state
command_topic: mqtt/irrigation/relay6/switch
payload_on: "1"
payload_off: "0"
state_on: "ON"
state_off: "OFF"
name: "Test Schalter 6"
- platform: mqtt
unique_id: Rasenbewässerung rechts
state_topic: mqtt/irrigation/relay7/state
command_topic: mqtt/irrigation/relay7/switch
payload_on: "1"
payload_off: "0"
state_on: "ON"
state_off: "OFF"
name: "Rasenbewässerung rechts"
- platform: mqtt
unique_id: Schalter 8
state_topic: mqtt/irrigation/relay8/state
command_topic: mqtt/irrigation/relay8/switch
payload_on: "1"
payload_off: "0"
state_on: "ON"
state_off: "OFF"
name: "Switch 8"
I created a new page in Lovelace which shows me the six entities as a simple switch. I was also able to separate them into two groups one is lawn irrigation and the other one is drip irrigation.
title: Startseite
views:
- theme: Backend-selected
title: Garten
path: garten
badges: []
cards:
- type: entities
entities:
- entity: switch.rasenbewasserung_hochbeet_nord
- entity: switch.rasenbewasserung_terrasse
- entity: switch.rasenbewasserung_rechts
- entity: switch.tropfbewasserung_hochbeet
- entity: switch.tropfbewasserung_terrasse
- entity: switch.tropfbewasserung_haus
title: Bewässerung
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: group.tropfbewasserung_all
name: Tropfbewässerung
show_state: true
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: group.rasenbewasserung
icon: mdi:grass
name: Rasen
and this is how far I got. I do have 6 switches but I am not able to change starting and end times I can only toggle them also the remaining time is not displayed and it does not stop automatically So what I do now I have is timer on my phone and when the timer on my phone rings I will manually stop the irrigation for each zone honestly that’s a big pain in my bum.
So next I would continue to the next step. I would like to activate lawn irrigation in just one switch. So I would start lawn irrigation and set it to duration of 20 minutes then it would start zone one for 20 minutes stop zone one start zone 2 for 20 minutes stop zone two and start zone 3 for 20 minutes stop zone 3 and lawn irrigation is finished.
The remaining time for each zone would be displayed in my Lovelace
Doing some research I found out that
Irrigation unlimited
would fit my needs the best.
But looking at the documentation it seems awfully complicated and way over my skills and open up unfortunately so maybe the very much appreciated community may help me with my issue and lead me to the ultimate goal of having of working but not too complicated lawn irrigation.
Any help and hints it’s highly appreciated to this very new member of home assistant.
Sascha