automation: # Living Room button turn light off - alias: office_light_button_turn_off trigger: - device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e domain: zha platform: device type: remote_button_short_press subtype: turn_off action: - type: turn_off entity_id: light.office_bulb device_id: ce016fbf6d9602740bbabe1fe9915c88 domain: light - type: turn_off entity_id: light.office_switch_socket device_id: 1fcba92f6a53183e10c1dc35a9bb82ce domain: light # Office button turn light on - alias: office_light_button_turn_on trigger: - device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e domain: zha platform: device type: remote_button_short_press subtype: turn_on action: - type: turn_on entity_id: light.office_bulb device_id: ce016fbf6d9602740bbabe1fe9915c88 domain: light # Office button turn light on long - alias: office_light_button_turn_on_long trigger: - device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e domain: zha platform: device type: remote_button_long_press subtype: dim_up action: - type: turn_on entity_id: light.office_bulb device_id: ce016fbf6d9602740bbabe1fe9915c88 domain: light - type: turn_on entity_id: light.office_switch_socket device_id: 1fcba92f6a53183e10c1dc35a9bb82ce domain: light #### Remote #### # Office remote turn light on - alias: office_light_remote_turn_on trigger: - device_id: 8cc9ef0e9155403ae478abf46bd884e4 domain: zha platform: device type: remote_button_short_press subtype: turn_on action: - type: turn_on entity_id: light.office_bulb device_id: ce016fbf6d9602740bbabe1fe9915c88 domain: light # Office remote turn light off - alias: office_light_remote_turn_off trigger: - device_id: 8cc9ef0e9155403ae478abf46bd884e4 domain: zha platform: device type: remote_button_short_press subtype: turn_off action: - type: turn_off entity_id: light.office_bulb device_id: ce016fbf6d9602740bbabe1fe9915c88 domain: light - type: turn_off entity_id: light.office_switch_socket device_id: 1fcba92f6a53183e10c1dc35a9bb82ce domain: light # Office remote turn pc on - alias: office_remote_turn_on_pc trigger: - device_id: 8cc9ef0e9155403ae478abf46bd884e4 domain: zha platform: device type: remote_button_short_press subtype: left action: - type: turn_on entity_id: light.office_switch_socket device_id: 1fcba92f6a53183e10c1dc35a9bb82ce domain: light - service: switch.turn_on target: entity_id: switch.tower # Office remote turn all off - alias: office_light_remote_turn_off_all trigger: - device_id: 8cc9ef0e9155403ae478abf46bd884e4 domain: zha platform: device type: remote_button_long_press subtype: long_down action: - type: turn_off entity_id: light.office_bulb device_id: ce016fbf6d9602740bbabe1fe9915c88 domain: light