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 logger: !include templates/logger.yaml #led packages ledje1: !include file: templates/LedWithEffects.yaml vars: entityID: led_light1 entityName: "led_light1" pin_led: ${pin_led1} ledje2: !include file: templates/LedWithEffects.yaml vars: entityID: led_light2 entityName: "led_light2" pin_led: ${pin_led2} ledje3: !include file: templates/LedWithEffects.yaml vars: entityID: led_light3 entityName: "led_light2" pin_led: ${pin_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