Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######## CUBE #########
- - alias: "Cube toggle lights"
- initial_state: 'on'
- trigger:
- - platform: mqtt
- topic: 'zigbee2mqtt/0x00158d0002565048'
- condition:
- - condition: template
- value_template: "{{ 'shake' == trigger.payload_json.action }}"
- action:
- - service_template: >
- {% if is_state('group.lights', 'on') %}
- homeassistant.turn_off
- {% else %}
- homeassistant.turn_on
- {% endif %}
- entity_id: group.lights, light.kitchen_counter_light
- - alias: "Cube reset lights"
- initial_state: 'on'
- trigger:
- - platform: mqtt
- topic: 'zigbee2mqtt/0x00158d0002565048'
- condition:
- - condition: template
- value_template: "{{ 'tap' == trigger.payload_json.action }}"
- action:
- - service: homeassistant.turn_on
- entity_id: scene.reset_to_standard
- - alias: "Cube falls"
- initial_state: 'on'
- trigger:
- - platform: mqtt
- topic: 'zigbee2mqtt/0x00158d0002565048'
- condition:
- - condition: template
- value_template: "{{ 'fall' == trigger.payload_json.action }}"
- action:
- - service: light.turn_off
- data:
- entity_id: light.kitchen_counter_light
- - service: light.turn_on
- data:
- entity_id: light.ambilight
- effect: "System Shutdown"
- - service: light.turn_on
- data:
- entity_id:
- - light.livingroom_couch
- - light.table
- - light.side_table_mood
- - light.bedroom
- - light.bedroom_table
- - light.kitchen_main
- - light.kitchen
- - light.tv_table
- - light.window_1
- - light.window_2
- color_name: "red"
- - alias: "Cube set movie lights"
- initial_state: 'on'
- trigger:
- - platform: mqtt
- topic: 'zigbee2mqtt/0x00158d0002565048'
- condition:
- - condition: state
- entity_id: input_boolean.lights_on_kitchen_movie_scene
- state: 'off'
- - condition: template
- value_template: "{{ is_state('sensor.0x00158d0002565048_action', 'flip90') and states.sensor['0x00158d0002565048_action'].attributes.to_side == 5 }}"
- action:
- - service: homeassistant.turn_on
- entity_id: scene.movie_time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement