From bfa171f80291dcfa9345cda5356258dfa4b0f88a Mon Sep 17 00:00:00 2001 From: Tobias Sauerwein Date: Thu, 18 Feb 2021 15:01:54 +0100 Subject: [PATCH] Add selectors to Netatmo services (#46574) * Add selectors * Fix schedul selector * Update homeassistant/components/netatmo/services.yaml Co-authored-by: Bram Kragten * Update homeassistant/components/netatmo/services.yaml Co-authored-by: Bram Kragten * Update services.yaml * Added required field Co-authored-by: Bram Kragten --- .../components/netatmo/services.yaml | 52 +++++++++++++------ 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/homeassistant/components/netatmo/services.yaml b/homeassistant/components/netatmo/services.yaml index 459ef23b0e0..11f83830dff 100644 --- a/homeassistant/components/netatmo/services.yaml +++ b/homeassistant/components/netatmo/services.yaml @@ -1,43 +1,63 @@ # Describes the format for available Netatmo services set_camera_light: - description: Set the camera light mode. + description: Set the camera light mode + target: + entity: + integration: netatmo + domain: light fields: camera_light_mode: + name: Camera light mode description: Outdoor camera light mode (on/off/auto) example: auto - entity_id: - description: Entity id of the camera. - example: camera.netatmo_entrance + required: true + selector: + select: + options: + - "on" + - "off" + - "auto" set_schedule: - description: Set the heating schedule. + description: Set the heating schedule + target: + entity: + integration: netatmo + domain: climate fields: schedule_name: description: Schedule name example: Standard - entity_id: - description: Entity id of the climate device. - example: climate.netatmo_livingroom + required: true + selector: + text: set_persons_home: - description: Set a list of persons as at home. Person's name must match a name known by the Welcome Camera. + description: Set a list of persons as at home. Person's name must match a name known by the Welcome Camera + target: + entity: + integration: netatmo + domain: camera fields: persons: description: List of names example: Bob - entity_id: - description: Entity id of the camera. - example: camera.netatmo_entrance + required: true + selector: + text: set_person_away: - description: Set a person away. If no person is set the home will be marked as empty. Person's name must match a name known by the Welcome Camera. + description: Set a person away. If no person is set the home will be marked as empty. Person's name must match a name known by the Welcome Camera + target: + entity: + integration: netatmo + domain: camera fields: person: description: Person's name (optional) example: Bob - entity_id: - description: Entity id of the camera. - example: camera.netatmo_entrance + selector: + text: register_webhook: description: Register webhook