Files
hassos_config/esphome/cfg_xmas/kersthuis01.yaml
2025-06-23 12:40:35 +02:00

45 lines
1004 B
YAML

substitutions:
device_name: "kersthuis-01"
friendly_name: "kersthuis-01_staircase"
comment: "esp32-c3"
location: "woonkamer"
api_password: !secret kersthuis-01_api
ip: !secret kersthuis-01_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_button: GPIO4
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_lights
entityName: "led string 1"
pin_led: ${pin_led1}
binary_sensor:
- platform: gpio
name: "Button"
pin: ${pin_button}
filters:
- delayed_on: 20ms
on_click:
min_length: 50ms
max_length: 1000ms
then:
- light.toggle:
id: led_lights