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

How to access shopping list data from automation

$
0
0

@ibxl wrote:

Hello,

I am trying to use automation to sync a google keep note with my shopping list.
I created the following automation :

- id: '1582473185321'
  alias: UpSync Google Keep Grocery list
  description: ''
  trigger:
  - event_type: shopping_list_updated
    platform: event
  condition: []
  action:
  - data_template:
      things: '{{ trigger.event}}'
      title: Grocery
    service: google_keep.add_to_list

I would like to retrieve instead of {{trigger.event}} the item that has been added to the shopping list.
I.e. : the name of the item last added or updated on the list and its “complete” argument
It seems I can access many arguments of the “event” object such as trigger.event.event_type, trigger.event.context ,… but trigger.event.event_data or trigger.event.data are empty

How could I retrieve the item on the list that has been udpated ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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