Git Product home page Git Product logo

Comments (4)

jlax47 avatar jlax47 commented on July 26, 2024

double check your automation yaml, here's what mine looks like:

- id: '000000001'
  alias: Download Kuna Deck Door recordings
  trigger:
    platform: event
    event_type: kuna_event
    event_data:
      category: recording
      serial_number: KNP000000000000
  action:
    service: downloader.download_file
    data_template:
      url: '{{ trigger.event.data.url }}'
      subdir: DeckDoor
      filename: '{{ trigger.event.data.label }}.mp4'

from kuna.

brewjd avatar brewjd commented on July 26, 2024

Here's mine,
I don't have a serial number in mine.

  • id: '1574638097594'
    alias: Download Kuna Recordings
    description: ''
    trigger:
    • event_data:
      category: recording
      event_type: kuna_event
      platform: event
      condition: []
      action:
    • data:
      filename: '{{ trigger.event.data.label }}.mp4'
      url: '{{ trigger.event.data.url }}'
      service: downloader.download_file
      i used the gui to create mine,
      I wiped out the automation in the autoamtions.yaml and replaced with yours minus the serial number and subdir but then i get
      Error rendering data template: UndefinedError: 'trigger' is undefined

from kuna.

brewjd avatar brewjd commented on July 26, 2024

resolved not sure which thing fixed it, but i recreated again and now I am getting the downloads.
Thanks. Here is the contents of my automations.yaml

  • id: '000000001'
    alias: Download Kuna recordings
    trigger:
    • event_data:
      category: recording
      event_type: kuna_event
      platform: event
      condition: []
      action:
    • service: downloader.download_file
      data_template:
      url: '{{ trigger.event.data.url }}'
      filename: '{{ trigger.event.data.label }}.mp4'

from kuna.

brewjd avatar brewjd commented on July 26, 2024

Thanks again!

from kuna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.