Skip to content

Commit

Permalink
Add no-bluetooth version of Linkind Switch template
Browse files Browse the repository at this point in the history
  • Loading branch information
untergeek committed Dec 19, 2024
1 parent 0f5d54a commit d763df6
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions template/linkind-switch-no-bt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
# Special oddity that runs a weird, single-core ESP32 chip but still has BLE
substitutions:
project_name: "untergeek.linkind_switch_no_bt"
project_version: "1.0.3"

packages:
comm: !include ../common.yaml
togl: !include ../restart_switch.yaml

esp32:
board: esp32dev
framework:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"

switch:
- platform: gpio
name: Switch
id: relay
pin: GPIO5
inverted: false
on_turn_on:
- output.turn_on:
id: red_led
on_turn_off:
- output.turn_off:
id: red_led

light:
- platform: binary
id: greenlight
internal: true
name: Green LED
output: green_led
- platform: binary
id: redlight
internal: true
name: Red LED
output: red_led

output:
- platform: gpio
pin: GPIO14
inverted: false
id: green_led
- platform: gpio
pin: GPIO26
inverted: false
id: red_led


binary_sensor:
- platform: gpio
pin:
number: GPIO32
inverted: true
mode: INPUT_PULLUP
name: ON Button
internal: false
on_click:
- switch.turn_on: relay

- platform: gpio
pin:
number: GPIO33
inverted: true
mode: INPUT_PULLUP
name: OFF Button
internal: False
on_click:
- switch.turn_off: relay

0 comments on commit d763df6

Please sign in to comment.