Advertisement
xangin

Webhook line command

Feb 15th, 2023
1,554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.45 KB | None | 0 0
  1. - id: test_line_webhook
  2.   alias: test_line_webhook
  3.   description: "Line指令"
  4.   mode: single
  5.   trigger:
  6.     - platform: webhook
  7.       webhook_id: 1234567
  8.   condition: []
  9.   action:
  10.     - choose:
  11.         - conditions:
  12.             - condition: template
  13.               value_template: "{{ trigger.json.events.0.message.text == '開除濕機' }}"
  14.           sequence:
  15.             - service: switch.turn_on
  16.               entity_id: switch.bath_s31_plug
Tags: ha
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement