Night light in bedroom
parent
cd62a024df
commit
96ceff0d34
12
README
12
README
|
@ -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)
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
api:
|
||||
encryption:
|
||||
key: !secret api-encryption-key
|
|
@ -6,10 +6,6 @@ esphome:
|
|||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
password: !secret api_password
|
||||
|
||||
ota:
|
||||
password: !secret ota_password
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue