Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106743

Google Sheets - Attempting to Pull Calendar Events into Sheets

$
0
0

Hi all,

I am trying to use Google Sheets script with the “Append to sheet” function to automatically fill in my calendar events into one of the columns once a day. It is able to pull the first event listed of a given day, but I’d like it to pull all events for the day.

This is what I’m using currently:

service: google_sheets.append_sheet
metadata: {}
data:
  config_entry: ec7f20c44a01b263a423fb8b9408acee
  worksheet: Work Hours
  data:
    created: "{{now().strftime(\"%m/%d/%y\")}}"
    Hours: "{{states('sensor.time')|float(0)}}"
    Rotation: "{{ state_attr('calendar.work', 'message')}}"

From doing some reading online, apparently the state attribute “message” can only pull the first listed event and some have suggested using the service calendar.get_events to list the events of the day. However, I’m not sure how it works using a service call in this setting when I’m just trying to spit out a text string. Any help with this would be great! Thanks.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>