---
substitutions:
devicename: "nodemcu-05"
id_name: nodemcu_05
Device_Location: Study Illuminance
update_interval: !secret d1-update_interval
ipaddress: 10.0.0.15
unique_id: "nodemcu-01"
deep_sleep_interval: !secret deep_sleep_interval
logger:
level: WARN
esp8266:
board: nodemcuv2
wifi:
ssid: !secret mogwai_wifi_name
password: !secret mogwai_wifi_password
<<: !include common/network.yaml
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "$devicename Fallback Hotspot"
password: !secret mogwai_ap_key
api:
encryption:
key: !secret mogwai_api_key
ota:
platform: esphome
password: !secret mogwai_ota_key
captive_portal:
esphome:
name: $devicename
friendly_name: "NodeMCU-05 - il Sensor"
<<: !include common/esp8266_boot_count_02.yaml
<<: !include common/esp8266_boot_count_01.yaml
<<: !include common/nodemcu-led-onboard-both-mqtt.yaml
<<: !include common/time-sntp.yaml
<<: !include common/website.yaml
<<: !include common/wifi1.yaml
<<: !include common/uptime_formatted.yaml
switch:
- <<: !include common/nodemcu-led-onboard1.yaml
- <<: !include common/nodemcu-led-onboard2.yaml
- <<: !include common/nodemcu-led-onboard1-2-shuffle.yaml
- <<: !include common/restart.yaml
interval:
- <<: !include common/version-interval.yaml
- <<: !include common/whatami.yaml
<<: !include common/external-heapmon.yaml
sensor:
- <<: !include common/wifi2.yaml
- <<: !include common/uptime.yaml
- <<: !include common/free_space.yaml
- <<: !include common/esp8266_mhz.yaml
- <<: !include common/memory_heap_frag.yaml
- <<: !include common/esp8266_boot_count_03.yaml
- platform: bh1750
name: "illuminance"
address: 0x23
update_interval: $update_interval
retain: False
text_sensor:
- <<: !include common/version.yaml
i2c:
sda: D1
scl: D2
scan: True
id: bus_a