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