substitutions:
devicename: d1-002
Device_Location: Synologies-Temperature
update_interval: !secret d1-update_interval
ipaddress: 10.0.0.112
esphome:
name: d1-002
friendly_name: "d1-002 - Temperatures"
esp8266:
board: nodemcuv2
# Enable logging
logger:
# level: WARN
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
# Enable Home Assistant API
api:
encryption:
key: !secret mogwai_api_key
ota:
platform: esphome
password: !secret mogwai_ota_key
captive_portal:
time:
- platform: homeassistant
id: homeassistant_time
# on_time:
# # Cron syntax, trigger every 5 minutes
# - cron: '1 1,6,11,16,21,26,31,36,41,46,51,56 * * * *'
# then:
# - switch.turn_on: led_onboard
# - switch.turn_on: led_onboard2
# - cron: '1 2,7,12,17,22,27,32,37,42,47,52,57 * * * *'
# then:
# - switch.turn_off: led_onboard
# - switch.turn_off: led_onboard2
<<: !include common/website.yaml
switch:
- <<: !include common/d1-led-onboard1.yaml
- <<: !include common/d1-led-onboard2.yaml
- <<: !include common/nodemcu-led-onboard1-2-shuffle.yaml
- <<: !include common/restart.yaml
<<: !include common/nodemcu-led-onboard-both-mqtt.yaml
# Dallas Temperature Sensors
one_wire:
- platform: gpio
pin: GPIO03
interval:
- <<: !include common/version-interval.yaml
# Individual sensors
sensor:
- <<: !include common/free_space.yaml
- platform: dallas_temp
address: 0x6d0b2281a3cc9328
name: "prox-01_temperature"
id: "prox_01_temperature"
update_interval: $update_interval
- platform: dallas_temp
address: 0xdd3c01d607507328
name: "prox-02_temperature"
id: "prox_02_temperature"
update_interval: $update_interval
- platform: dallas_temp
address: 0x5f0300a279238c28
name: "prox-03_temperature"
id: "prox_03_temperature"
update_interval: $update_interval
text_sensor:
- <<: !include common/version.yaml
<<: !include common/external-heapmon.yaml