Hi,
I wanted to create two shell commands as below:
shell_command:
- setcam5overlay: ‘/scripts/setcam5overlay.sh {{ states.sensor.nursery_11_1.state }} {{ states.sensor.nursery_11_0.state }}’
- poll_locations: ‘ssh [email protected] /scripts/poll_locations.sh’
But this is an error message I’m getting in the log file:
17-02-25 14:27:47 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [shell_command]: expected a dictionary for dictionary value @ data[‘shell_command’]. Got [OrderedDict([(‘setcam5overlay’, ‘/scripts/setcam5overlay.sh {{ states.sensor.nursery_11_1.state }} {{ states.sensor.nursery_11_0.state }}’)]), OrderedDict([(‘polllocation s’, ‘ssh [email protected] /scripts/poll_locations.sh’)])]. (See /home/hass1user/.homeassistant/configuration.yaml, line 242). Please check the docs at https://home-a ssistant.io/components/shell_command/
Any idea why I’m getting this? Thanks!