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

Command line is not working properly

$
0
0

I have

command_line:
  - switch:
      name: Tree effect
      command_on: echo -e '\x47\x54\x04\x00\x{{'%02x' % state_attr('input_select.cicle_effect_tree','options').index(states('input_select.cicle_effect_tree')) |int }}' | nc -w2 -u 192.168.0.118 8888
      command_off: echo -e '\x47\x54\x02\x06' | nc -w2 -u 192.168.0.118 8888

but my devise not work for this command.
I tested static command and it is worked normal

 - switch:
      name: Tree effect
      command_on: echo -e '\x47\x54\x04\x00\x15' | nc -w2 -u 192.168.0.118 8888
      command_off: echo -e '\x47\x54\x02\x06' | nc -w2 -u 192.168.0.118 8888

who can explain why does not work dynamically?

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 106364

Trending Articles



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