So, I have the automation loading and calling the service…
- id: "Broadcast Real Temp HTTP"
alias: 'Broadcast Real Temp HTTP'
hide_entity: True
trigger:
- platform: time
minutes: '/1'
seconds: '0'
action:
- service: shell_command.wu_temp_http
data_template:
state: "{{ states.sensor.pws_temp_f.state }}"
But, I am getting an error running the service call that blows up HA after 3 attempted runs! It will not run from the command line with a value replacing the state part either. The command does work from a browser.
Command line run:
config curl http://192.168.1.121/control?cmd=event,RealTemp=10
zsh: no matches found: http://192.168.1.121/control?cmd=event,RealTemp=10
shell_command:
wu_temp_http: ‘/usr/bin/curl http://192.168.1.121/control?cmd=event,RealTemp={{ state }}’
2018-03-07 21:54:00 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall shell_command.wu_temp_http: state=30.4>
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/shell_command.py", line 86, in async_service_handler
process = yield from create_process
File "/usr/lib/python3.6/asyncio/subprocess.py", line 225, in create_subprocess_exec
stderr=stderr, **kwds)
File "uvloop/loop.pyx", line 2368, in __subprocess_run
File "uvloop/handles/process.pyx", line 564, in uvloop.loop.UVProcessTransport.new
File "uvloop/handles/process.pyx", line 87, in uvloop.loop.UVProcess._init
FileNotFoundError: [Errno 2] No such file or directory