@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