Add (water) Valves

Home assistant doesn’t support valves (water valves) they just show up as switches.

HomeKit does support valves, it would be great if my water zwave water valve would show up as a valve not a switch

4 years later and no progress on this :slightly_frowning_face:

This would be a nice feature. I have 6 irrigation zones and a patio misting system that would be nice to have as valves in HomeKit.

I agree that the switch domain is not intuitive to the new user. It took me a year to even understand what a domain is. I still have to refer to my notes:

A switch is to operate something external, like a relay attached to a gpio.

A binary sensor is a physical switch or button for detecting something like grounding a GPIO pin.

But the development of Home Assistant is so far down that lexicological path that I would vote against changing the switch domain.

What I would support is the ability to alias the domain somehow so that you could use “valve” and “switch” interchangeably. (And confuse anyone else reading your code).

A valve or solenoid is a switch. Get over it.

ESPHome does allow for a more meaningful ID inside the ESPHome code. I do so little in the Home Assistant config files now; Whenever I can, I prefer ESPHome.

switch:
  - platform: gpio
    name: Sprinkler Relay
    id: sprinkler_relay
    pin: GPIO12

Now, anywhere in my ESPHome code, I control Sprinkler_Relay, not switch.Sprinkler Relay

    on_press:
      - homeassistant.service:
          service: switch.turn_on: sprinkler_relay