Compare commits

...

7 Commits

Author SHA1 Message Date
Jason Williams
249d981689 Adding bindicator 2024-04-11 15:56:24 -06:00
Jason Williams
aff8f85afd Reconfiguring bedroom lightstrips after hardware refresh
Adding one additional LED to each segment
2024-04-11 15:55:50 -06:00
Jason Williams
f62e04aef1 Removing faulty onpress/onrelease code from garage.yaml 2024-04-11 15:55:06 -06:00
Jason Williams
f1db356421 Updating mqtt server address 2024-04-11 15:53:50 -06:00
Jason Williams
2789e0e4c3 Adding restart button to all ESPHome nodes 2023-06-02 11:41:07 -06:00
Jason Williams
2de799c753 Updating bedroom-lightstrips.yaml
Adding custom twinkle function and reducing the number of lights by one as a result of rewiring a faulty connection between the two sides of the bed
2023-05-25 19:47:26 -06:00
Jason Williams
c3225ab919 Update garage.yaml
Adding additional code to immediately set the status of the garage door when the status of the fully open or fully closed sensor changes
2023-05-15 11:54:03 -06:00
5 changed files with 201 additions and 35 deletions

View File

@@ -15,7 +15,7 @@ wifi:
fast_connect: true
mqtt:
broker: henry.int.jnf.me
broker: mqtt.srv.jnf.me
username: esphome
password: esphome
topic_prefix: esphome/basement
@@ -48,4 +48,8 @@ binary_sensor:
device_class: moisture
filters:
- invert
- delayed_off: 5s
- delayed_off: 5s
button:
- platform: restart
name: "Restart"

View File

@@ -17,7 +17,7 @@ wifi:
fast_connect: true
mqtt:
broker: henry.int.jnf.me
broker: mqtt.srv.jnf.me
username: esphome
password: esphome
topic_prefix: esphome/bedroom-lightstrips
@@ -42,7 +42,18 @@ light:
- addressable_rainbow
- addressable_color_wipe
- addressable_scan
- addressable_twinkle
- addressable_twinkle:
name: Twinkle Light
twinkle_probability: 5%
progress_interval: 10ms
- addressable_twinkle:
name: Twinkle Medium
twinkle_probability: 15%
progress_interval: 10ms
- addressable_twinkle:
name: Twinkle Heavy
twinkle_probability: 85%
progress_interval: 10ms
- addressable_random_twinkle
- addressable_fireworks
- addressable_flicker
@@ -59,7 +70,18 @@ light:
- addressable_rainbow
- addressable_color_wipe
- addressable_scan
- addressable_twinkle
- addressable_twinkle:
name: Twinkle Light
twinkle_probability: 5%
progress_interval: 10ms
- addressable_twinkle:
name: Twinkle Medium
twinkle_probability: 15%
progress_interval: 10ms
- addressable_twinkle:
name: Twinkle Heavy
twinkle_probability: 85%
progress_interval: 10ms
- addressable_random_twinkle
- addressable_fireworks
- addressable_flicker
@@ -74,8 +96,18 @@ light:
- addressable_rainbow
- addressable_color_wipe
- addressable_scan
- addressable_twinkle
- addressable_random_twinkle
- addressable_twinkle:
name: Twinkle Light
twinkle_probability: 5%
progress_interval: 10ms
- addressable_twinkle:
name: Twinkle Medium
twinkle_probability: 15%
progress_interval: 10ms
- addressable_twinkle:
name: Twinkle Heavy
twinkle_probability: 85%
progress_interval: 10ms
- addressable_fireworks
- addressable_flicker
@@ -89,7 +121,22 @@ light:
- addressable_rainbow
- addressable_color_wipe
- addressable_scan
- addressable_twinkle
- addressable_twinkle:
name: Twinkle Light
twinkle_probability: 5%
progress_interval: 10ms
- addressable_twinkle:
name: Twinkle Medium
twinkle_probability: 15%
progress_interval: 10ms
- addressable_twinkle:
name: Twinkle Heavy
twinkle_probability: 85%
progress_interval: 10ms
- addressable_random_twinkle
- addressable_fireworks
- addressable_flicker
- addressable_flicker
button:
- platform: restart
name: "Restart"

101
bindicator.yaml Normal file
View File

@@ -0,0 +1,101 @@
esphome:
name: bindicator
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
logger:
level: INfO
baud_rate: 0
ota:
password: "bd2c004f2016fde90fbbb01706ad039a"
wifi:
ssid: !secret ssid
password: !secret pass
mqtt:
broker: mqtt.srv.jnf.me
username: esphome
password: esphome
topic_prefix: esphome/bindicator
light:
- platform: neopixelbus
name: "Bindicator"
id: bindicator
variant: WS2812X
pin: 0
num_leds: 2
effects:
- lambda:
name: Pulsing
update_interval: 1s
lambda: |-
static int loopnum = 0;
auto call = id(bindicator).turn_on();
call.set_brightness(1);
call.set_transition_length(1000);
if (loopnum == 0) {
call.set_brightness(0.5);
} else if (loopnum == 1) {
call.set_brightness(1);
}
call.perform();
loopnum++;
if (loopnum == 30) loopnum = 0;
- platform: partition
name: "Bindicator - Bottom"
id: bindicatorbottom
segments:
- id: bindicator
from: 0
to: 0
effects:
- lambda:
name: Pulsing
update_interval: 1s
lambda: |-
static int loopnum = 0;
auto call = id(bindicatorbottom).turn_on();
call.set_brightness(1);
call.set_transition_length(1500);
if (loopnum == 0) {
call.set_brightness(0.5);
} else if (loopnum == 1) {
call.set_brightness(1);
}
call.perform();
loopnum++;
if (loopnum == 30) loopnum = 0;
- platform: partition
name: "Bindicator - Top"
id: bindicatortop
segments:
- id: bindicator
from: 1
to: 1
effects:
- lambda:
name: Pulsing
update_interval: 1s
lambda: |-
static int loopnum = 0;
auto call = id(bindicatortop).turn_on();
call.set_brightness(1);
call.set_transition_length(1500);
if (loopnum == 0) {
call.set_brightness(0.5);
} else if (loopnum == 1) {
call.set_brightness(1);
}
call.perform();
loopnum++;
if (loopnum == 30) loopnum = 0;

View File

@@ -15,7 +15,7 @@ wifi:
fast_connect: true
mqtt:
broker: henry.int.jnf.me
broker: mqtt.srv.jnf.me
username: esphome
password: esphome
topic_prefix: esphome/garage
@@ -63,33 +63,39 @@ binary_sensor:
device_class: door
id: garage_door_open
filters:
- invert:
on_press:
then:
- lambda: |-
id(garage_door_state).publish_state("Open");
on_release:
then:
- lambda: |-
id(garage_door).current_operation = COVER_OPERATION_CLOSING;
id(garage_door).publish_state();
id(garage_door_state).publish_state("Moving");
- invert
# on_press:
# then:
# - lambda: |-
# //id(garage_door).current_operation = COVER_OPERATION_IDLE;
# //id(garage_door).position = COVER_OPEN;
# //id(garage_door_state).publish_state("Open");
# on_release:
# then:
# - lambda: |-
# //id(garage_door).current_operation = COVER_OPERATION_CLOSING;
# //id(garage_door).publish_state();
# //id(garage_door_state).publish_state("Moving");
- platform: gpio
pin: D1
id: garage_door_closed
filters:
- invert:
- invert
internal: true
on_press:
then:
- lambda: |-
id(garage_door_state).publish_state("Closed");
on_release:
then:
- lambda: |-
id(garage_door).current_operation = COVER_OPERATION_OPENING;
id(garage_door).publish_state();
id(garage_door_state).publish_state("Moving");
# on_press:
# then:
# - lambda: |-
# //id(garage_door).current_operation = COVER_OPERATION_IDLE;
# //id(garage_door).position = COVER_CLOSED;
# //id(garage_door_state).publish_state("Closed");
# on_release:
# then:
# - lambda: |-
# //id(garage_door).current_operation = COVER_OPERATION_OPENING;
# //id(garage_door).publish_state();
# //id(garage_door_state).publish_state("Moving");
- platform: gpio
pin: D2
name: "Side Door"
@@ -155,4 +161,8 @@ cover:
condition:
binary_sensor.is_on: garage_door_open
then:
- switch.turn_on: garage_door_switch
- switch.turn_on: garage_door_switch
button:
- platform: restart
name: "Restart"

View File

@@ -15,7 +15,7 @@ wifi:
fast_connect: true
mqtt:
broker: henry.int.jnf.me
broker: mqtt.srv.jnf.me
username: esphome
password: esphome
topic_prefix: esphome/houseplant
@@ -37,4 +37,8 @@ sensor:
url: !lambda |-
return (std::string) "https://jasonsplant.jaywll.co/newreading?v=" + to_string(int(id(moisture_level).state));
headers:
auth-key: !secret houseplant_key
auth-key: !secret houseplant_key
button:
- platform: restart
name: "Restart"