314ma

Wallpanel motion

Jul 29th, 2020
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - alias: wall_panel_activate_on_motion
  2.   initial_state: on
  3.   trigger:
  4.    - platform: state
  5.      entity_id: binary_sensor.aqara_motion_sensor_1
  6.      to: 'on'
  7.   action:
  8.     - service: mqtt.publish
  9.       data:
  10.         topic: 'wallpanel/1/command'
  11.         payload: '{"wake": true, "wakeTime": 180}'
RAW Paste Data