Trying to move the DIY sensor boxes to git config as well.
This commit is contained in:
parent
99cc5b9da6
commit
354af46e87
2 changed files with 86 additions and 0 deletions
47
esphome/device_packages/sensor-box-diy.yaml
Normal file
47
esphome/device_packages/sensor-box-diy.yaml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
esp8266:
|
||||
board: d1_mini
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
variant: WS2812
|
||||
pin: D4
|
||||
num_leds: 5
|
||||
type : GRB
|
||||
name: "${friendly_devicename} PM25"
|
||||
effects: !include
|
||||
file: ../partials/effects.yaml
|
||||
- platform: neopixelbus
|
||||
variant: WS2812
|
||||
pin: D3
|
||||
num_leds: 5
|
||||
type : GRB
|
||||
name: "${friendly_devicename} PM10"
|
||||
effects: !include
|
||||
file: ../partials/effects.yaml
|
||||
- platform: binary
|
||||
name: "${friendly_devicename} Lamp"
|
||||
output: relay
|
||||
id: light_switch
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin: D1
|
||||
id: relay
|
||||
|
||||
sun:
|
||||
latitude: ${lat}
|
||||
longitude: ${long}
|
||||
on_sunset:
|
||||
- then:
|
||||
- light.turn_on:
|
||||
id: light_switch
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
on_time:
|
||||
- seconds: 0
|
||||
minutes: 30
|
||||
hours: 23
|
||||
then:
|
||||
- light.turn_off:
|
||||
id: light_switch
|
||||
Loading…
Add table
Add a link
Reference in a new issue