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

Issue with Command_Line parameters in Windows

$
0
0

@StefanoGiu wrote:

Lovelace:

                   - type: button
                     entity: sensor.centralina_irrigazione
                     style:
                       left: 17%
                       top: 37%
                       #--iron-icon-height: 30px
                       #--iron-icon-width: 30px              
                     icon: 'mdi:radio'
                     tap_action:
                       action: call-service
                       service: script.water_a_zone
                       service_data:
                         zona: 1
                         minuti: 5

Script:

water_a_zone:
  alias: Innaffia una zona
  sequence:
   - service: shell_command.run_netro
     data_template:
        zona_val:  >
            {{zona}}
        minuti_val: >
            {{minuti}}

shell_command:

run_netro: python C:\GoogleHome\Python\NetroRun.py {{zona_val}} {{minuti_val}}

When I try to run, I got the following error:


2020-04-10 17:24:55 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `python C:\GoogleHome\Python\NetroRun.py {{zona_val}} {{minuti_val}}`, return code: 2

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95394

Trending Articles



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