Pasar argumentos a shell_command
Pasar argumentos a shell_command
Buenos días,
estoy tratando de hacer una automatización que obtiene información del evento que la activa, cosa que he conseguido sin problema, pero acto seguido quiero que lance un shell_command que reciba información sobre los datos del evento para utilizarlos como argumento.
Dejo el código a ver si con ello se ve más claro:
Automations.yaml
- alias: Torrent completado
trigger:
platform: event
event_type: transmission_downloaded_torrent
action:
- service: notify.mobile_app_guijar_iphone_11
data:
message: "{{trigger.event.context.id}}"
- service: shell_command.test_command
data:
id: "{{trigger.event.context.id}}"
configuration.yaml
shell_command:
test_command: 'echo {{ id }} > /config/hola.adios'
Como veis trato de enviar el parámetro {{trigger.event.context.id}} (que estoy recibiendo bien ya que la notificación en el móvil es correcta) pero no se cómo recoger esa información desde el shell_command, no puedo leer el "id" que le estoy pasando. Algo hago mal jeje.
Un saludo.
estoy tratando de hacer una automatización que obtiene información del evento que la activa, cosa que he conseguido sin problema, pero acto seguido quiero que lance un shell_command que reciba información sobre los datos del evento para utilizarlos como argumento.
Dejo el código a ver si con ello se ve más claro:
Automations.yaml
- alias: Torrent completado
trigger:
platform: event
event_type: transmission_downloaded_torrent
action:
- service: notify.mobile_app_guijar_iphone_11
data:
message: "{{trigger.event.context.id}}"
- service: shell_command.test_command
data:
id: "{{trigger.event.context.id}}"
configuration.yaml
shell_command:
test_command: 'echo {{ id }} > /config/hola.adios'
Como veis trato de enviar el parámetro {{trigger.event.context.id}} (que estoy recibiendo bien ya que la notificación en el móvil es correcta) pero no se cómo recoger esa información desde el shell_command, no puedo leer el "id" que le estoy pasando. Algo hago mal jeje.
Un saludo.
Re: Pasar argumentos a shell_command
What your declaring is absolutely real. I know that everyone should say the exact same matter, but I just believe that you put it in a way that everyone can realize. I also love the images you set in right here. They suit so well with what youre hoping to say. Im positive youll attain so quite a few folks with what youve received to say. 우리카지노
Re: Pasar argumentos a shell_command
Excellent website you have here but I was curious if you knew of any message boards that cover the same topics talked about in this article? I’d really love to be a part of group where I can get advice from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Cheers! what is customs and border protection cbp in the united states
Re: Pasar argumentos a shell_command
Generate a very boys and girls? Track down stride ritual coupons available for you small children to footwear. Save your dough. Designs, a person contribution ended up being fabulous. pentobarbital for sale
-
- Mensajes: 141
- Registrado: Lun Dic 11, 2023 6:38 am
Holidays Lucky Wheel
We have a site for sports games. You must be interested. OKBet.com Crazy Time
Re: Pasar argumentos a shell_command
art posters are great for room decoration too, i use art posters on my bedroom as decorations’ एस्टा यूएस वीजा पात्रता जापानी नागरिक
Re: Pasar argumentos a shell_command
You produced some decent points there. I looked online for your issue and located most people go coupled with with your web site. Caluanie Muelear Oxidize USA
-
- Mensajes: 359
- Registrado: Lun Dic 18, 2023 8:41 am
Re: Pasar argumentos a shell_command
An impressive share, I just given this onto a colleague who has been performing a little analysis for this. And then he in truth bought me breakfast since I stumbled upon it for him.. smile. So let me reword that: Thnx for that treat! But yeah Thnkx for spending any time to discuss this, I feel strongly about this and really like reading more about this topic. If at all possible, as you become expertise, could you mind updating your blog with increased details? It is highly great for me. Huge thumb up with this writing! nạp tiền 8DAY
Re: Pasar argumentos a shell_command
I’d have to talk with you here. Which isn’t some thing I do! I spend time reading a post that could make people think. Also, thank you for permitting me to comment! Gentleman jack whiskey
Re: Pasar argumentos a shell_command
I like all the content articles, I really cherished, I would like more information concerning this, due to the fact it is extremely great., Thank you regarding talking about. SEO tutorials for beginners