From b71c931e4d71a2d140cf441e96e1519257a66d69 Mon Sep 17 00:00:00 2001 From: Nicholas Westerhausen Date: Tue, 1 Jan 2019 10:31:16 -0500 Subject: [PATCH] Fix service call documentation (#7742) See #7368 The component doesn't seem to register "turn_away_mode_off" and "turn_away_mode_on" as services and instead uses "set_away_mode" --- source/_components/water_heater.markdown | 29 ++++-------------------- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/source/_components/water_heater.markdown b/source/_components/water_heater.markdown index 56917dcc57b..245b6eb67c8 100644 --- a/source/_components/water_heater.markdown +++ b/source/_components/water_heater.markdown @@ -77,13 +77,14 @@ automation: operation_mode: eco ``` -### {% linkable_title Service `water_heater.turn_away_mode_on` %} +### {% linkable_title Service `water_heater.set_away_mode` %} -Turn away mode on for water heater device +Turn away mode on or off for water heater device | Service data attribute | Optional | Description | | ---------------------- | -------- | ----------- | | `entity_id` | yes | String or list of strings that point at `entity_id`'s of water heater devices to control. Else targets all. +| `away_mode` | no | New value of away mode. 'on'/'off' or True/False #### {% linkable_title Automation example %} @@ -93,28 +94,8 @@ automation: platform: time at: "07:15:00" action: - - service: water_heater.turn_away_mode_on + - service: water_heater.set_away_mode data: entity_id: water_heater.demo + away_mode: True ``` - -### {% linkable_title Service `water_heater.turn_away_mode_off` %} - -Trun away mode off for water heater device - -| Service data attribute | Optional | Description | -| ---------------------- | -------- | ----------- | -| `entity_id` | yes | String or list of strings that point at `entity_id`'s of water heater devices to control. Else targets all. - -#### {% linkable_title Automation example %} - -```yaml -automation: - trigger: - platform: time - at: "07:15:00" - action: - - service: water_heater.turn_away_mode_off - data: - entity_id: water_heater.demo -``` \ No newline at end of file