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:
Peter Marheine authored and GitHub committed 2024-09-22 20:54:46 +10:00
1 parent e4912eb6e1
commit 228839de8f
1 file changed
+1
+1
View File
@@ -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: