SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - alias: Xiaomi Cube - Brightness
  2.   initial_state: true
  3.   trigger:
  4.     platform: event
  5.     event_type: xiaomi_aqara.cube_action
  6.     event_data:
  7.       entity_id: binary_sensor.cube_158d000278f1e3
  8.       action_type: flip90
  9.   condition:
  10.     - condition: state
  11.       entity_id: light.lamp_suite
  12.       state: 'on'
  13.   action:
  14.     - service: light.turn_on
  15.       entity_id: light.lamp_suite
  16.       data:
  17.         brightness: 255
  18.         transition: 5
  19.     - service: light.turn_on
  20.       entity_id: light.lamp_suite_secondary
  21.       data:
  22.         brightness: 255
  23.         transition: 5
  24.  
  25.  
  26. - alias: Xiaomi Cube - Brightness
  27.   initial_state: true
  28.   trigger:
  29.     platform: event
  30.     event_type: xiaomi_aqara.cube_action
  31.     event_data:
  32.       entity_id: binary_sensor.cube_158d000278f1e3
  33.       action_type: flip180
  34.   condition:
  35.     - condition: state
  36.       entity_id: light.lamp_suite
  37.       state: 'on'
  38.   action:
  39.     - service: light.turn_on
  40.       entity_id: light.lamp_suite
  41.       data:
  42.         brightness: 10
  43.         transition: 5
  44.     - service: light.turn_on
  45.       entity_id: light.lamp_suite_secondary
  46.       data:
  47.         brightness: 10
  48.         transition: 5
  49.  
  50.  
  51. - alias: Xiaomi Cube - event shake_air
  52.   initial_state: true
  53.   trigger:
  54.     platform: event
  55.     event_type: xiaomi_aqara.cube_action
  56.     event_data:
  57.       entity_id: binary_sensor.cube_158d000278f1e3
  58.       action_type: shake_air
  59.   action:
  60.     - service: light.toggle
  61.       entity_id: light.lamp_suite
  62.     - service: light.toggle
  63.       entity_id: light.lamp_suite_secondary
  64.  
  65.  
  66.  
  67.  
  68. - alias: Kidsroom Aqara Switch toggle lamp
  69.   initial_state: true
  70.   trigger:
  71.     platform: event
  72.     event_type: xiaomi_aqara.click
  73.     event_data:
  74.       entity_id: binary_sensor.switch_158d0002139185
  75.       click_type: single
  76.   action:
  77.     - service: light.toggle
  78.       data:
  79.         entity_id: light.lamp_kids
  80.  
  81.  
  82.  
  83. - alias: Kidsroom Aqara Switch toggle Script Bedtime
  84.   initial_state: true
  85.   trigger:
  86.     platform: event
  87.     event_type: xiaomi_aqara.click
  88.     event_data:
  89.       entity_id: binary_sensor.switch_158d0002139185
  90.       click_type: double
  91.   action:
  92.     - service: homeassistant.toggle
  93.       entity_id: script.script_bed_time
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top