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

Service with shell_command doesn't work

$
0
0

@zlotoxa wrote:

Hi comrades.
Can you advice, please.
I have following definition in configurations.yaml (still testing):

shell_command:
  update_nar_mon: echo "{{ states.sensor['28_011913b19b3a_temperature'] }}" > /home/homeassistant/.homeassistant/temp.txt

the ultimate goal after successful writing into the file --> curl external server with counters information (on it’s update triggered from automation).

Above definition parsed successfully ( i can saw errors if there was an extra bracket or quotes mismatch - so it works somehow). However, when i am invoking this service from within developer_tools–>services, nothing really happens. File remains unchanged. No errors in log. File temp.txt has all necessary permissions.

what am i doing wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 106480

Trending Articles



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