mirror of
https://github.com/athom-tech/esp32-configs.git
synced 2026-10-26 22:10:21 +00:00
Smart plug: add ID for power button
Setting an ID for the power button allows its behavior to be extended or
modified by configuration that uses this package, for example:
packages:
Athom_Technology.Smart_Plug_V2: github://athom-tech/athom-configs/athom-smart-plug-v2.yaml
binary_sensor:
- id: !extend power_button
# Additional settings here
This commit is contained in:
1 parent
e4912eb6e1
commit
228839de8f
1 file changed
+1
@@ -120,6 +120,7 @@ binary_sensor:
|
||||
mode: INPUT_PULLUP
|
||||
inverted: true
|
||||
name: "Power Button"
|
||||
id: power_button
|
||||
disabled_by_default: true
|
||||
on_multi_click:
|
||||
- timing:
|
||||
|
||||
Reference in new issue
Block a user