Created
June 27, 2025 18:35
-
-
Save beeldubz/bb5c8b10352c698448e5a9689b58a4fd to your computer and use it in GitHub Desktop.
Third Reality MK1 Keyboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: Third Reality MK1 Keyboard Automation | |
| description: | | |
| Control your smart home with the Third Reality MK1 keyboard function keys. | |
| How to use: | |
| 1. Select your keyboard from your matter devices | |
| 2. Configure actions for each F‑key | |
| 3. Press Matter + F1–F12 to trigger actions | |
| This keyboard only supports single press events as far as I can tell. | |
| domain: automation | |
| input: | |
| keyboard_device: | |
| name: Keyboard Device | |
| description: Select your Third Reality MK1 keyboard | |
| selector: | |
| device: | |
| filter: | |
| - integration: matter | |
| - model: "MK1" | |
| multiple: false | |
| f1_action: | |
| name: F1 – Action | |
| description: Action for Fn+F1 | |
| default: [] | |
| selector: | |
| action: {} | |
| f2_action: | |
| name: F2 – Action | |
| description: Action for Fn+F2 | |
| default: [] | |
| selector: | |
| action: {} | |
| f3_action: | |
| name: F3 – Action | |
| description: Action for Fn+F3 | |
| default: [] | |
| selector: | |
| action: {} | |
| f4_action: | |
| name: F4 – Action | |
| description: Action for Fn+F4 | |
| default: [] | |
| selector: | |
| action: {} | |
| f5_action: | |
| name: F5 – Action | |
| description: Action for Fn+F5 | |
| default: [] | |
| selector: | |
| action: {} | |
| f6_action: | |
| name: F6 – Action | |
| description: Action for Fn+F6 | |
| default: [] | |
| selector: | |
| action: {} | |
| f7_action: | |
| name: F7 – Action | |
| description: Action for Fn+F7 | |
| default: [] | |
| selector: | |
| action: {} | |
| f8_action: | |
| name: F8 – Action | |
| description: Action for Fn+F8 | |
| default: [] | |
| selector: | |
| action: {} | |
| f9_action: | |
| name: F9 – Action | |
| description: Action for Fn+F9 | |
| default: [] | |
| selector: | |
| action: {} | |
| f10_action: | |
| name: F10 – Action | |
| description: Action for Fn+F10 | |
| default: [] | |
| selector: | |
| action: {} | |
| f11_action: | |
| name: F11 – Action | |
| description: Action for Fn+F11 | |
| default: [] | |
| selector: | |
| action: {} | |
| f12_action: | |
| name: F12 – Action | |
| description: Action for Fn+F12 | |
| default: [] | |
| selector: | |
| action: {} | |
| variables: | |
| kb_device_id: !input keyboard_device | |
| trigger: | |
| - platform: state | |
| entity_id: | |
| - event.keyboard_button_1 | |
| - event.keyboard_button_2 | |
| - event.keyboard_button_3 | |
| - event.keyboard_button_4 | |
| - event.keyboard_button_5 | |
| - event.keyboard_button_6 | |
| - event.keyboard_button_7 | |
| - event.keyboard_button_8 | |
| - event.keyboard_button_9 | |
| - event.keyboard_button_10 | |
| - event.keyboard_button_11 | |
| - event.keyboard_button_12 | |
| to: ~ | |
| condition: | |
| - condition: template | |
| value_template: >- | |
| {{ trigger.to_state.attributes.event_type == 'initial_press' | |
| and trigger.entity_id.startswith('event.keyboard_button_') | |
| and device_id(trigger.entity_id) == kb_device_id }} | |
| action: | |
| - choose: | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_1' }}" | |
| sequence: !input f1_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_2' }}" | |
| sequence: !input f2_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_3' }}" | |
| sequence: !input f3_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_4' }}" | |
| sequence: !input f4_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_5' }}" | |
| sequence: !input f5_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_6' }}" | |
| sequence: !input f6_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_7' }}" | |
| sequence: !input f7_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_8' }}" | |
| sequence: !input f8_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_9' }}" | |
| sequence: !input f9_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_10' }}" | |
| sequence: !input f10_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_11' }}" | |
| sequence: !input f11_action | |
| - conditions: "{{ trigger.entity_id == 'event.keyboard_button_12' }}" | |
| sequence: !input f12_action | |
| mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment