Your “valve” first needs to be a switch entity in Home Assistant.
Then you can add something like the following to your configuration.yaml:
homekit:
- name: "HASS Bridge - YAML"
port: 21063
filter:
include_entities:
- switch.whole_house_hot_water_plug
entity_config:
switch.whole_house_hot_water_plug:
type: shower