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