From 099161da60da51e5ed4ccef320c8df4dc770e0bf Mon Sep 17 00:00:00 2001 From: Daniel <49846893+danielbrunt57@users.noreply.github.com> Date: Fri, 18 Nov 2022 08:49:10 -0800 Subject: [PATCH] Update google_sheets.markdown (#24538) Co-authored-by: Franck Nijhof --- source/_integrations/google_sheets.markdown | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source/_integrations/google_sheets.markdown b/source/_integrations/google_sheets.markdown index 07ec9a03648..2cf07b653ad 100644 --- a/source/_integrations/google_sheets.markdown +++ b/source/_integrations/google_sheets.markdown @@ -83,4 +83,20 @@ You can use the service `google_sheets.append_sheet` to add a row of data to the | `worksheet` | yes | Name of the worksheet. Defaults to the first one in the document. | Sheet1 | `data` | no | Data to be appended to the worksheet. This puts the data on a new row, one value per column. | {"hello": world, "cool": True, "count": 5} +{% raw %} + +```yaml +# Example service call +service: google_sheets.append_sheet +data: + config_entry: 1b4a46c6cba0677bbfb5a8c53e8618b0 + worksheet: "Car Charging" + data: + Date: "{{ now().strftime('%-d-%b-%y') }}" + KWh: "{{ states('input_number.car_charging_kwh')|float(0) }}" + Cost: "{{ states('input_number.car_charging_cost')|float(0) }}" +``` + +{% endraw %} + {% enddetails %}