Pasar argumentos a shell_command

¿Atascado con una automatización de Home Assistant? ¿Alguna configuración que no va? Plantea tu problema e intentaremos ayudarte
Guijar
Mensajes: 2
Registrado: Lun Nov 18, 2019 3:08 pm

Pasar argumentos a shell_command

Mensaje por Guijar » Vie Oct 30, 2020 12:13 pm

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.

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Pasar argumentos a shell_command

Mensaje por dadag » Sab Dic 09, 2023 1:43 pm

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. 우리카지노

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Pasar argumentos a shell_command

Mensaje por dadag » Dom Dic 10, 2023 10:45 am

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

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Pasar argumentos a shell_command

Mensaje por dadag » Jue Dic 14, 2023 1:51 pm

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

Agnestine111
Mensajes: 141
Registrado: Lun Dic 11, 2023 6:38 am

Holidays Lucky Wheel

Mensaje por Agnestine111 » Sab Dic 16, 2023 3:19 am

We have a site for sports games. You must be interested. OKBet.com Crazy Time

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Pasar argumentos a shell_command

Mensaje por dadag » Dom Dic 17, 2023 9:17 am

art posters are great for room decoration too, i use art posters on my bedroom as decorations’ एस्टा यूएस वीजा पात्रता जापानी नागरिक

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Pasar argumentos a shell_command

Mensaje por dadag » Dom Dic 17, 2023 10:07 am

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

todoji2981
Mensajes: 359
Registrado: Lun Dic 18, 2023 8:41 am

Re: Pasar argumentos a shell_command

Mensaje por todoji2981 » Lun Dic 18, 2023 1:10 pm

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

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Pasar argumentos a shell_command

Mensaje por dadag » Lun Dic 18, 2023 2:07 pm

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

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Pasar argumentos a shell_command

Mensaje por dadag » Mar Dic 19, 2023 3:50 pm

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

Responder