From 354af46e87567d2e741640686175bc48c2065a4e Mon Sep 17 00:00:00 2001 From: "Frank \"PHiAX\" Weggelaar" Date: Thu, 29 Jan 2026 13:38:15 +0100 Subject: [PATCH] Trying to move the DIY sensor boxes to git config as well. --- esphome/device_packages/sensor-box-diy.yaml | 47 +++++++++++++++++++++ esphome/partials/effects.yaml | 39 +++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 esphome/device_packages/sensor-box-diy.yaml create mode 100644 esphome/partials/effects.yaml diff --git a/esphome/device_packages/sensor-box-diy.yaml b/esphome/device_packages/sensor-box-diy.yaml new file mode 100644 index 0000000..bb6cdc6 --- /dev/null +++ b/esphome/device_packages/sensor-box-diy.yaml @@ -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 \ No newline at end of file diff --git a/esphome/partials/effects.yaml b/esphome/partials/effects.yaml new file mode 100644 index 0000000..9fa5018 --- /dev/null +++ b/esphome/partials/effects.yaml @@ -0,0 +1,39 @@ +effects: + - strobe: + - flicker: + - addressable_rainbow: + - addressable_color_wipe: + - addressable_scan: + - addressable_twinkle: + - addressable_random_twinkle: + - addressable_fireworks: + - addressable_flicker: + - addressable_color_wipe: + name: Kingsday + colors: + - red: 78% + green: 6% + blue: 18% + num_leds: 2 + - red: 100% + green: 100% + blue: 100% + num_leds: 2 + - red: 0% + green: 24% + blue: 65% + num_leds: 2 + - red: 100% + green: 61% + blue: 0% + num_leds: 6 + add_led_interval: 100ms + reverse: true + - random: + name: "My Slow Random Effect" + transition_length: 30s + update_interval: 30s + - random: + name: "My Fast Random Effect" + transition_length: 4s + update_interval: 5s \ No newline at end of file