substitutions: device_name: "kersthuis-03" friendly_name: "kersthuis-03-candyshop" comment: "esp32-c3" location: "woonkamer" api_password: !secret kersthuis-03_api ip: !secret kersthuis-03_ip ota_password: !secret ota_password wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password gateway: !secret ip_gateway subnet: !secret ip_subnet pin_led1: GPIO3 pin_led2: GPIO4 pin_led3: GPIO6 pin_button: GPIO7 packages: board: !include boards/esp32-C3.yaml device_base: !include common/common.yaml connection: !include common/wifi.yaml # status: !include templates/status.yaml logger: !include templates/logger.yaml light: - platform: monochromatic id: led_light1 restore_mode: RESTORE_DEFAULT_ON output: led1 name: led_light1 effects: - flicker: name: "Flicker" alpha: 95% intensity: 1.5% on_turn_on: - light.turn_on: id: led_light1 effect: flicker brightness: 75% - platform: monochromatic id: led_light2 restore_mode: RESTORE_DEFAULT_ON output: led2 name: led_light2 effects: - flicker: name: "Flicker" alpha: 95% intensity: 1.5% on_turn_on: - light.turn_on: id: led_light2 effect: flicker brightness: 75% - platform: monochromatic id: led_light3 restore_mode: RESTORE_DEFAULT_ON output: led3 name: led_light3 effects: - flicker: name: "Flicker" alpha: 95% intensity: 1.5% on_turn_on: - light.turn_on: id: led_light3 effect: flicker brightness: 75% output: - platform: ledc pin: ${pin_led1} id: led1 - platform: ledc pin: ${pin_led2} id: led2 - platform: ledc pin: ${pin_led3} id: led3 binary_sensor: - platform: gpio pin: number: ${pin_button} mode: input: true pullup: true name: "button" on_click: then: - light.toggle: led_light1 - light.toggle: led_light2 - light.toggle: led_light3