substitutions: device_name: "esp32-atom-lite" friendly_name: "RGBLED moon woonkamer" comment: "esp32, RGBled, BT proxy" location: "Woonkamer" api_password: !secret esp32-atomo-lite_api ota_password: !secret ota_password wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password gateway: !secret ip_gateway subnet: !secret ip_subnet ip: !secret esp32-atomo-lite_ip pin_button: GPIO39 pin_leds: GPIO25 packages: board: !include boards/esp32_m5atom.yaml connection: !include common/wifi.yaml device_base: !include common/common.yaml bt_proxy: !include templates/ble_proxy.yaml logger: !include templates/nologger.yaml binary_sensor: - platform: gpio pin: number: ${pin_button} inverted: true name: ${device_name}_Button id: button on_click: then: - if: condition: - light.is_on: RGB_Light then: - light.turn_off: RGB_Light else: - light.turn_on: RGB_Light light: - platform: neopixelbus type: GRB variant: ws2812X pin: ${pin_leds} num_leds: 1 name: "${device_name}_RGB_Light" id: RGB_Light effects: - random: name: "Random" transition_length: 4s update_interval: 5s - addressable_rainbow: name: Rainbow Effect speed: 100 width: 50