hass-core/homeassistant/components/rainbird/services.yaml
Allen Porter 5000c426c6
Add config flow for Rain Bird (#85271)
* Rainbird config flow

Convert rainbird to a config flow. Still need to handle irrigation numbers.

* Add options for irrigation time and deprecate yaml

* Combine exception handling paths to get 100% test coverage

* Bump the rainird config deprecation release

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove unnecessary sensor/binary sensor and address some PR feedback

* Simplify configuration flow and options based on PR feedback

* Consolidate data update coordinators to simplify overall integration

* Fix type error on python3.9

* Handle yaml name import

* Fix naming import post serialization

* Parallelize requests to the device

* Complete conversion to entity service

* Update homeassistant/components/rainbird/switch.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/rainbird/config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove unused import

* Set default duration in options used in tests

* Add separate devices for each sprinkler zone and update service to use config entry

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-07 09:34:01 -08:00

37 lines
965 B
YAML

start_irrigation:
name: Start irrigation
description: Start the irrigation
target:
entity:
integration: rainbird
domain: switch
fields:
duration:
name: Duration
description: Duration for this sprinkler to be turned on
required: true
selector:
number:
min: 1
max: 1440
unit_of_measurement: "minutes"
set_rain_delay:
name: Set rain delay
description: Set how long automatic irrigation is turned off.
fields:
config_entry_id:
name: Rainbird Controller Configuration Entry
description: The setting will be adjusted on the specified controller
required: true
selector:
config_entry:
integration: rainbird
duration:
name: Duration
description: Duration for this system to be turned off.
required: true
selector:
number:
min: 0
max: 14
unit_of_measurement: "days"