4
Size: a a a
4
AV
4
AV
4
4
AV
4
AV
4
A
4
A
shell_command:
light_set_rgb: /bin/bash -c "echo -ne '{\"id\":1, \"method\":\"set_rgb\", \"params\":[255, \"smooth\", 500]}\r\n' | nc -w1 192.168.1.27 55443"
light_set_scene: /bin/bash -c "echo -ne '{\"id\":1, \"method\":\"set_scene\", \"params\":[\"ct\", 3200, 80]}\\r\\n' | nc -w1 192.168.1.27 55443"
- alias: test light
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.test
to: 'on'
action:
- service: shell_command.light_set_rgb
- alias: test light 2
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.test
to: 'off'
action:
- service: shell_command.light_set_scene
shell_command:
light_bg_set_rgb: /bin/bash -c "echo -ne '{\"id\":1, \"method\":\"bg_set_rgb\", \"params\":[255, \"sudden\", 500]}\r\n' | nc -w1 192.168.1.27 55443"
4
4
4
AV
4
A