Night light in bedroom

master
woju 2024-02-01 23:07:55 +01:00
parent cd62a024df
commit 96ceff0d34
5 changed files with 33 additions and 10 deletions

12
README
View File

@ -4,17 +4,17 @@ d1_mini
https://www.wemos.cc/en/latest/d1/d1_mini.html#pin
~/.local/lib/python3.9/site-packages/esphome/components/esp8266/boards.py
GPIO d1_mini
GPIO d1_mini PULL NOTE
i2c SCL GPIO5 D1
SDA GPIO4 D2
boot mode GPIO0 D3 careful with this pin!
internal led GPIO2 D4,LED
SDA GPIO4 D2 nie wiem, co z nim, ale chyba jest najlepszy do bazy BC547
boot mode GPIO0 D3 +12 kΩ careful with this pin!
internal led GPIO2 D4,LED +12 kΩ
spi CLK GPIO14 D5
MISO GPIO12 D6
MOSI GPIO13 D7
freely usable GPIO16 D0
spi (CS) GPIO15 D8
freely usable GPIO16 D0 +14 kΩ jumper to RST
spi (CS) GPIO15 D8 -12 kΩ
GPIO1 (TX)
GPIO3 (RX)

23
bedr-redlight.yaml Normal file
View File

@ -0,0 +1,23 @@
substitutions:
node_name: bedr-redlight
packages:
common: !include lib/pkg-common.yaml
api: !include lib/pkg-api.yaml
wifi: !include lib/pkg-wifi.yaml
esphome:
platform: ESP8266
board: d1_mini
# D1 jest sygnałem do WS281x
output:
- platform: esp8266_pwm
id: pwm_d2
pin: D2
light:
- name: Czerwone światło w sypialni
platform: monochromatic
output: pwm_d2

3
lib/pkg-api.yaml Normal file
View File

@ -0,0 +1,3 @@
api:
encryption:
key: !secret api-encryption-key

View File

@ -6,10 +6,6 @@ esphome:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret api_password
ota:
password: !secret ota_password

View File

@ -7,6 +7,7 @@ substitutions:
packages:
common: !include lib/pkg-common.yaml
api: !include lib/pkg-api.yaml
wifi: !include lib/pkg-wifi.yaml
esphome: