esphome-esp8266

  1. esp8266使用esphome接入hass
    对于生成配置文件的更改

此处nodemcu泛指集成的开发板,一般十几块钱一块

下方使用的是D1,对应的针脚是GPIO5

esp8266:
  board: nodemcuv2


binary_sensor:
 - platform: gpio
   pin: GPIO5
   name: "红外传感器"
   device_class: motion

针脚定义参考图

image

参考官方文档
https://esphome.io/components/esp8266.html#configuration-variables

posted @ 2023-02-04 13:04  rainsc  阅读(254)  评论(0)    收藏  举报