|
| 1 | +substitutions: |
| 2 | + name: localdeck |
| 3 | + friendly_name: LocalDeck |
| 4 | + |
| 5 | +packages: |
| 6 | + - !include ../../common/platforms/common-esp32c3.yaml |
| 7 | + - !include ../../common/wifi.yaml |
| 8 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "A"}} |
| 9 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "B"}} |
| 10 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "C"}} |
| 11 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "D"}} |
| 12 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "E"}} |
| 13 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "F"}} |
| 14 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "G"}} |
| 15 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "H"}} |
| 16 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "I"}} |
| 17 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "J"}} |
| 18 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "K"}} |
| 19 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "L"}} |
| 20 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "M"}} |
| 21 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "N"}} |
| 22 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "O"}} |
| 23 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "P"}} |
| 24 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "Q"}} |
| 25 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "R"}} |
| 26 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "S"}} |
| 27 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "T"}} |
| 28 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "U"}} |
| 29 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "V"}} |
| 30 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "W"}} |
| 31 | + - !include {file: ../../templates/buttons/keypad_button.yaml, vars: {key: "X"}} |
| 32 | + |
| 33 | + # 24 leds |
| 34 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 1}} |
| 35 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 2}} |
| 36 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 3}} |
| 37 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 4}} |
| 38 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 5}} |
| 39 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 6}} |
| 40 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 7}} |
| 41 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 8}} |
| 42 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 9}} |
| 43 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 10}} |
| 44 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 11}} |
| 45 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 12}} |
| 46 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 13}} |
| 47 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 14}} |
| 48 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 15}} |
| 49 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 16}} |
| 50 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 17}} |
| 51 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 18}} |
| 52 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 19}} |
| 53 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 20}} |
| 54 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 21}} |
| 55 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 22}} |
| 56 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 23}} |
| 57 | + - !include {file: ../../templates/localdeck/light-blink.yaml, vars: {number: 24}} |
| 58 | + |
| 59 | +light: |
| 60 | + - platform: esp32_rmt_led_strip |
| 61 | + # name: None |
| 62 | + id: raw_ledstrip |
| 63 | + rgb_order: GRB |
| 64 | + color_correct: [100%, 100%, 100%] |
| 65 | + gamma_correct: 1.0 |
| 66 | + pin: |
| 67 | + number: GPIO8 |
| 68 | + ignore_strapping_warning: true |
| 69 | + num_leds: 24 |
| 70 | + chipset: SK6812 |
| 71 | + |
| 72 | + - platform: partition |
| 73 | + id: ledstrip |
| 74 | + output_id: ledstrip_output |
| 75 | + color_correct: [100%, 100%, 100%] |
| 76 | + gamma_correct: 1.0 |
| 77 | + segments: |
| 78 | + - id: raw_ledstrip |
| 79 | + from: 18 |
| 80 | + to: 23 |
| 81 | + - id: raw_ledstrip |
| 82 | + from: 12 |
| 83 | + to: 17 |
| 84 | + - id: raw_ledstrip |
| 85 | + from: 6 |
| 86 | + to: 11 |
| 87 | + - id: raw_ledstrip |
| 88 | + from: 0 |
| 89 | + to: 5 |
| 90 | + restore_mode: RESTORE_AND_OFF |
| 91 | + effects: |
| 92 | + - addressable_lambda: |
| 93 | + name: Keypad |
| 94 | + update_interval: 25ms |
| 95 | + lambda: |- |
| 96 | + it.all().darken(15); |
| 97 | +
|
| 98 | +
|
| 99 | +esphome: |
| 100 | + on_boot: |
| 101 | + - light.turn_on: |
| 102 | + id: ledstrip |
| 103 | + effect: Keypad |
| 104 | + |
| 105 | +matrix_keypad: |
| 106 | + id: keypad |
| 107 | + keys: ABCDEFGHIJKLMNOPQRSTUVWX |
| 108 | + rows: |
| 109 | + - pin: GPIO7 |
| 110 | + - pin: GPIO3 |
| 111 | + - pin: GPIO20 |
| 112 | + - pin: GPIO21 |
| 113 | + columns: |
| 114 | + - pin: |
| 115 | + number: GPIO0 |
| 116 | + drive_strength: 5mA |
| 117 | + - pin: |
| 118 | + number: GPIO1 |
| 119 | + drive_strength: 5mA |
| 120 | + - pin: |
| 121 | + number: GPIO10 |
| 122 | + drive_strength: 5mA |
| 123 | + - pin: |
| 124 | + number: GPIO4 |
| 125 | + drive_strength: 5mA |
| 126 | + - pin: |
| 127 | + number: GPIO5 |
| 128 | + drive_strength: 5mA |
| 129 | + - pin: |
| 130 | + number: GPIO6 |
| 131 | + drive_strength: 5mA |
0 commit comments