This is my first attempt to attach something to Home Assistant, so my apologies if I am missing alot. I have searched this topic a good bit and haven’t been able to find anything that gets me where I want to be.
I’m trying to integrate my (home made) lawn irrigation system into HA via MQTT. I did try to make an auto config but never got that to work, so gave up and tried manual.
I’d like a block with a title like “Irrigation” and n switches for each Zone. So something like
|---------------------------------------|
| Irrigation |
| Master Enable [ X ] |
| Zone 1: Front [ X ] |
| Zone 2: Back [ X ] |
Rain Sensor O |
---|
So ignoring the rain sensor, trying to first set up the Zone valves, I used this configuration in the configure.yaml file, under mqtt: I’ve included the following file:
switch:
- name: "Zone 1: Front Yard"
unique_id: Zone1
state_topic: "yard/sprinkler/homesystem/zone1/get"
command_topic: "yard/sprinkler/homesystem/zone1/set"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
device:
identifiers: PiSprinkler
name: "Home Sprinkler"
model: "Pi Sprinkler"
manufacturer: "HomeBrew"
- name: "Zone 2: Sidewalk"
unique_id: Zone1
state_topic: "yard/sprinkler/homesystem/zone2/get"
command_topic: "yard/sprinkler/homesystem/zone2/set"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
device:
identifiers: PiSprinkler
name: "Home Sprinkler"
model: "Pi Sprinkler"
manufacturer: "HomeBrew"
which results in this:
Home Sprinkler [switch]
Zone 1: Front Yard [greyed out switch]
Zone 1: Front Yard [Power Off/On Indicator I think]
Zone 2: Front Yard [greyed out switch]
Zone 2: Sidewalk [greyed out switch]
First, I don’t want a master switch for this… only one valve can be on at a time, so turning on one valve will turn the others off anyway in the main systm, so I’d love to get rid of that master switch.
Second, I don’t understand where Zone 2: Front yard comes from. It should show sidewalk for that one, and it is an indicator instead of a switch, so that’s confusing me.
My original yaml was the same as above, but with separate unique_id settings (zone1, vs zone2). That resulted in
Home Sprinkler [switch]
Zone 1: Front Yard [greyed out switch]
Zone 1: Front Yard [Power Off/On Indicator I think]
Zone 2: Front Yard [greyed out switch]
Zone 2: Sidewalk [Power Off/On Indicator I think]
What I’d like to have is a config that create a card with a ttitle other than switch at the top, so the card would have a title
Home Sprinkler System
Zone 1: Front Yard [toggle switch]
Zone 2: Sidewalk [toggle switch]
…
Zone n: Name [toggle switch]
Rain Sensor [indicato light] ← This si a sensor, I haven’t tried to implement this one yet)
I’d like to be able to also put the toggle switches either vertically or horizontally. In the web app, it is horizontal, not sure if I prefer it that way or vertical in HA. If that’s not possible, it’s a minor thing, though.
Thanks in advance for any help you can give, and apolologies in advance for my ignorance. I just started with home assistant and only played with it for 5-6 days, and alot of that time was either installation and basic set up, or learning MQTT programming so my sprinkler system could send data to HA that way.
Thanks again