Init
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
- alias: cube_flip90
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: cube_action
|
||||
event_data:
|
||||
entity_id: binary_sensor.cube_158d00011065e3
|
||||
click_type: flip90
|
||||
action:
|
||||
event: cube_flip90
|
||||
|
||||
- alias: cube_flip180
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: cube_action
|
||||
event_data:
|
||||
entity_id: binary_sensor.cube_158d00011065e3
|
||||
click_type: flip180
|
||||
action:
|
||||
event: cube_flip180
|
||||
|
||||
- alias: cube_shake_air
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: cube_action
|
||||
event_data:
|
||||
entity_id: binary_sensor.cube_158d00011065e3
|
||||
click_type: shake_air
|
||||
action:
|
||||
event: cube_shake_air
|
||||
|
||||
- alias: cube_move
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: cube_action
|
||||
event_data:
|
||||
entity_id: binary_sensor.cube_158d00011065e3
|
||||
click_type: move
|
||||
action:
|
||||
event: cube_move
|
||||
|
||||
- alias: cube_swing
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: cube_action
|
||||
event_data:
|
||||
entity_id: binary_sensor.cube_158d00011065e3
|
||||
click_type: swing
|
||||
action:
|
||||
event: cube_swing
|
||||
|
||||
- alias: cube_tap_twice
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: cube_action
|
||||
event_data:
|
||||
entity_id: binary_sensor.cube_158d00011065e3
|
||||
click_type: tap_twice
|
||||
action:
|
||||
event: cube_tap_twice
|
||||
@@ -0,0 +1,7 @@
|
||||
- alias: 'Start HomeKit'
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- delay: 00:00:30 # Wait 30 seconds
|
||||
- service: homekit.start
|
||||
@@ -0,0 +1,8 @@
|
||||
- alias: Domofon event
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/domofon/domofon/calltime
|
||||
action:
|
||||
- event: domofon_call
|
||||
event_data_template:
|
||||
payload: '{{ trigger.payload }}'
|
||||
@@ -0,0 +1,76 @@
|
||||
#####################################################
|
||||
# MAINROOM #
|
||||
#####################################################
|
||||
- alias: button_living_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/mainroom/status
|
||||
payload: 'click'
|
||||
action:
|
||||
event: button_mainroom_click
|
||||
|
||||
- alias: button_living_double_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/mainroom/status
|
||||
payload: 'double_click'
|
||||
action:
|
||||
event: button_mainroom_double_click
|
||||
|
||||
#####################################################
|
||||
# BATH #
|
||||
#####################################################
|
||||
- alias: button_bath_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/bath/status
|
||||
payload: 'click'
|
||||
action:
|
||||
event: button_bath_click
|
||||
|
||||
- alias: button_bath_double_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/bath/status
|
||||
payload: 'double_click'
|
||||
action:
|
||||
event: button_bath_double_click
|
||||
|
||||
|
||||
#####################################################
|
||||
# HALL #
|
||||
#####################################################
|
||||
- alias: button_hall_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/hall/status
|
||||
payload: 'click'
|
||||
action:
|
||||
event: button_hall_click
|
||||
|
||||
- alias: button_hall_double_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/hall/status
|
||||
payload: 'double_click'
|
||||
action:
|
||||
event: button_hall_double_click
|
||||
|
||||
#####################################################
|
||||
# KITCHEN #
|
||||
#####################################################
|
||||
- alias: button_kitchen_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/kitchen/status
|
||||
payload: 'click'
|
||||
action:
|
||||
event: button_kitchen_click
|
||||
|
||||
- alias: button_kitchen_double_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/kitchen/status
|
||||
payload: 'double_click'
|
||||
action:
|
||||
event: button_kitchen_double_click
|
||||
@@ -0,0 +1,39 @@
|
||||
- alias: cube_flip90
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'flip90'
|
||||
action:
|
||||
- event: cube_flip90
|
||||
|
||||
- alias: cube_flip180
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'flip180'
|
||||
action:
|
||||
- event: cube_flip180
|
||||
|
||||
- alias: cube_shake_air
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'shake_air'
|
||||
action:
|
||||
- event: cube_shake_air
|
||||
|
||||
- alias: cube_move
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'move'
|
||||
action:
|
||||
- event: cube_move
|
||||
|
||||
- alias: cube_tap_twice
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'tap_twice'
|
||||
action:
|
||||
- event: cube_tap_twice
|
||||
@@ -0,0 +1,10 @@
|
||||
#####################################################
|
||||
# MAINROOM #
|
||||
#####################################################
|
||||
- alias: ha_start
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
event: ha_started
|
||||
@@ -0,0 +1,26 @@
|
||||
- alias: "Office welcome"
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: work/presence/office/enter_time
|
||||
action:
|
||||
- event: office_enter
|
||||
event_data_template:
|
||||
payload: '{{ trigger.payload }}'
|
||||
|
||||
- alias: "Work leave reminder"
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: work/presence/office/leave_reminder_event
|
||||
action:
|
||||
- event: office_leave_reminder
|
||||
event_data_template:
|
||||
payload: '{{ trigger.payload }}'
|
||||
|
||||
- alias: "Work leave report"
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: work/presence/office/leave_event
|
||||
action:
|
||||
- event: office_leave
|
||||
event_data_template:
|
||||
payload: '{{ trigger.payload }}'
|
||||
Reference in New Issue
Block a user