Compare commits
7 Commits
9ebe7e5a82
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
249d981689 | ||
|
|
aff8f85afd | ||
|
|
f62e04aef1 | ||
|
|
f1db356421 | ||
|
|
2789e0e4c3 | ||
|
|
2de799c753 | ||
|
|
c3225ab919 |
@@ -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"
|
||||
@@ -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
101
bindicator.yaml
Normal 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;
|
||||
58
garage.yaml
58
garage.yaml
@@ -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"
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user