From c403957a91d01804f2d074dcf98393d0686ed68f Mon Sep 17 00:00:00 2001 From: taschenbier Date: Thu, 30 Jan 2020 23:31:08 +0100 Subject: [PATCH] Update 'blaue_lichterkette.yaml' --- blaue_lichterkette.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/blaue_lichterkette.yaml b/blaue_lichterkette.yaml index 9f83da2..8c13a76 100644 --- a/blaue_lichterkette.yaml +++ b/blaue_lichterkette.yaml @@ -32,4 +32,19 @@ light: - platform: monochromatic output: pwm_output name: "Blaue Lichterkette" - + id: blaue_lichterkette + +binary_sensor: + - platform: gpio + pin: + number: GPIO05 + mode: INPUT_PULLUP + id: switch_blaue_lichterkette + on_press: + then: + light.toggle: + id: blaue_lichterkette + on_release: + then: + light.toggle: + id: blaue_lichterkette \ No newline at end of file