Skip to content

Commit

Permalink
Add Feit BPPLUG template
Browse files Browse the repository at this point in the history
  • Loading branch information
untergeek committed Oct 30, 2024
1 parent 74df9b0 commit 0a7a00c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions template/feit-bpplug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# We track the project name and version here in the template
packages:
main: !include
file: ../esphome.yaml
vars:
project_name: untergeek.bpplug
project_version: 1.0.0
chip: !include
file: ../esp8266.yaml
vars:
board: esp8285
sync: !include ../time.yaml
togl: !include ../restart_switch.yaml
logs: !include ../logging.yaml

substitutions:
device_id: relay

status_led:
pin:
number: GPIO4
inverted: yes

binary_sensor:
- platform: gpio
id: button
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: True
on_press:
- switch.toggle: $device_id

output:
- platform: gpio
id: ${device_id}_status
pin: GPIO5
inverted: yes

switch:
- platform: gpio
id: $device_id
name: Switch
pin: GPIO12
on_turn_on:
- output.turn_on: ${device_id}_status
on_turn_off:
- output.turn_off: ${device_id}_status

0 comments on commit 0a7a00c

Please sign in to comment.