1. shell_command
cat /config/shell_commands/smoke.yaml
#
smoke: /config/bin/smoke "{{ name }}" - "{{ state }}"
2. then do
action: shell_command.smoke
data:
name: "{{ trigger.to_state.name }}"
state: "{{ trigger.to_state.state }}"
cat /config/shell_commands/smoke.yaml
#
smoke: /config/bin/smoke "{{ name }}" - "{{ state }}"
action: shell_command.smoke
data:
name: "{{ trigger.to_state.name }}"
state: "{{ trigger.to_state.state }}"