From 228839de8f098a4635775ff6e02e8a7b44e141e0 Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Sun, 22 Sep 2024 20:54:46 +1000 Subject: [PATCH] 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 --- athom-smart-plug.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/athom-smart-plug.yaml b/athom-smart-plug.yaml index ec3f8c4..9ce4b96 100644 --- a/athom-smart-plug.yaml +++ b/athom-smart-plug.yaml @@ -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: