本帖最后由 Tao173 于 2021-11-17 17:50 编辑
我买这个的时候好像才四五块一个。。。
esphome代码:
esphome:
name: zhixiwenshid1
platform: ESP8266
board: nodemcuv2
wifi:
ssid:
password: "
ap:
ssid: "esphome Set up"
password: "12345678"
captive_portal:
logger:
api:
ota:
web_server:
port: 80
sensor:
- platform: dht
pin: GPIO4
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
update_interval: 60s
model: DHT11
- platform: adc
pin: VCC
name: "VCC Voltage"
- platform: wifi_signal
name: "WiFi Signal Sensor"
- platform: uptime
name: Uptime Sensor
update_interval: 60s
switch:
- platform: gpio
pin: GPIO12
name: "Test room led"
- platform: restart
name: "Living Room Restart"
- platform: shutdown
name: "Living Room Shutdown"
text_sensor:
- platform: wifi_info
ip_address:
name: "ESP IP Address"
ssid:
name: "ESP Connected SSID"
bssid:
name: "SP Connected BSSID"
mac_address:
name: "ESP Mac Wifi Address"
|