Skip to content

Commit

Permalink
Added icon substitution and curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
untergeek committed Oct 30, 2024
1 parent 0a7a00c commit 152c329
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions template/feit-bpplug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ packages:

substitutions:
device_id: relay
icon: mdi:power-socket-us

status_led:
pin:
Expand All @@ -30,7 +31,7 @@ binary_sensor:
mode: INPUT_PULLUP
inverted: True
on_press:
- switch.toggle: $device_id
- switch.toggle: ${device_id}

output:
- platform: gpio
Expand All @@ -40,8 +41,9 @@ output:

switch:
- platform: gpio
id: $device_id
id: ${device_id}
name: Switch
icon: ${icon}
pin: GPIO12
on_turn_on:
- output.turn_on: ${device_id}_status
Expand Down

0 comments on commit 152c329

Please sign in to comment.