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

Shoppinf List and Automation

$
0
0

@ZenTachi wrote:

Hi everyone,

I am trying to create an automation such that when I add/complete an item on my shopping list in HomeAssistant it will POST to nodered using rest_command.

When I manually test my automation in in Developer Tools/Events by using Event Type call_service, it works fine and I can see the message in my nodered.

However, when I click the “+” and adding an item on the shopping list card, then it looks that the automation is not being triggered.

Is my assumption correct that most probably when clicking “+” to add an item in the shopping list card, it doesn’t actually call the shopping_list.add_item service but does something else?
Does anyone know what happens when “+” is being used?

#Shoppinglist to NodeRed
- alias: 'Shopping List Add Item'
  trigger:
    - platform: event
      event_type: call_service
      event_data:   
        domain: shopping_list
        service: add_item
  action:
    - service: rest_command.shopping_list
      data_template:
        name: "{{ trigger.event.data }}"

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95419

Trending Articles



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