Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 8:09:05 A1016391:~/work/esphome > cat boothesp.yml
- ---
- <<: !include .secrets.yml
- esphome:
- name: boothesp
- platform: ESP8266
- board: nodemcu
- # includes:
- # -
- wifi:
- ssid: ${wifi_ssid}
- password: ${wifi_pass}
- # Enable logging
- logger:
- level: INFO
- ota:
- #api: # home assistant
- mqtt:
- broker: ${mqtt_host}
- username: ${mqtt_user}
- password: ${mqtt_pass}
- topic_prefix: '/esphome'
- discovery: False # HomeAssistant
- birth_message:
- topic: '/esp/boothesp/restart'
- payload: 'Hi'
- qos: 0
- retain: True
- on_message:
- - topic: '/esp/test'
- then:
- - light.turn_on:
- id: booth_strip
- red: 0.2
- green: 1.0
- blue: 0.1
- brightness: 0.5
- effect: "Strobe Effect With Custom Values"
- - topic: '/esp/test2'
- then:
- - light.turn_off: booth_strip
- light:
- - platform: neopixelbus
- id: booth_strip
- type: GRB
- pin: GPIO3
- num_leds: 10
- name: "Test Light"
- #effects: ${light_effects}
- effects:
- - random:
- name: Random Effect With Custom Values
- transition_length: 5s
- update_interval: 7s
- - strobe:
- name: Strobe Effect With Custom Values
- colors:
- - state: True
- brightness: 100%
- red: 100%
- green: 90%
- blue: 0%
- duration: 500ms
- - state: False
- duration: 250ms
- - state: True
- brightness: 100%
- red: 0%
- green: 100%
- blue: 0%
- duration: 500ms
- % 8:09:14 A1016391:~/work/esphome > cat .secrets.yml
- ---
- substitutions:
- wifi_ssid: "this"
- wifi_pass: "that"
- mqtt_host: "what.ever"
- mqtt_user: boothesp
- mqtt_pass: "bla"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement