点击visit device会跳转到esp32的后台,在后台我们能看到esp32模块的名字ESP32-XXXX-XXXX,以及当前模块的IP地址。 编写固件 打开ESPHOME(docker方式或者HSos方式),这时一般就会显示discover模块了。我们在右下角点击“new device”-“continue”-然后把发现的名字填进去ESP32-XXXX-XXXX,然后选择ESP32模块的型号,这时会自...
binary_sensor: - platform: gpio pin: number: GPIO3 inverted: true name: "Flame Detecctor" device_class: smokeb. 将火焰传感器添加到仪表板 您可以参考上面的光传感器或温度和湿度传感器。 带有Yaml 文件的其他传感器 通过Seeed Studio Contributor Program 支持,感谢 Mohammed。下面列出了更多支持的传感...
binary_sensor:# 水浸 雨水 传感器-platform:gpiopin:number:GPIO2inverted:truename:"Water Overflow"# 红外传感器-platform:gpiopin:number:GPIO4name:"cook"device_class:motionsensor:-platform:dhtpin:GPIO5# D1 对应 GPIO5model:DHT11temperature:name:"Temperature"humidity:name:"Humidity"update_interval:60s ...
esp8266使用esphome接入hass 对于生成配置文件的更改 此处nodemcu泛指集成的开发板,一般十几块钱一块 下方使用的是D1,对应的针脚是GPIO5 esp8266: board: nodemcuv2 binary_sensor: - platform: gpio pin: GPIO5 name: "红外传感器" device_class: motion 针脚定义参考图 参考官方文档 https://esphome.io/compone...
password:"12345678"captive_portal:# Enable logginglogger:# Enable Home Assistant APIapi:# password: "1"ota:password:"123"web_server:port:80switch:-platform:gpiopin:GPIO0name:"书房灯1"id:relay2inverted:Truebinary_sensor:-platform:gpiopin:GPIO2name:"press_switch_lib1"device_class:openingfilters...
binary_sensor: - platform: gpio pin: number: GPIO1 mode: INPUT_PULLUP name: "Key" device_class: window # Enable logging logger: baud_rate: 0 deassert_rts_dtr: true # Enable Home Assistant API api: encryption: key: "XXXX" ota: ...
device_class: power pin: number: GPIO13 inverted: true on_press: - switch.toggle: relay # https://esphome.io/components/binary_sensor/status.html - platform: status name: ${device_name}_status # https://esphome.io/components/text_sensor/index.html ...
-platform:gpioname:"PC Power button"icon:"mdi:electric-switch"pin:D2#Power button output pininverted:noid:power_pinbinary_sensor: -platform:gpiopin:D1#Power detect input pinname:"PC Power Sense"device_class:power Secrets.yaml esphome_api_password:"changeme"esphome_ota_password:"c...
binary_sensor: - platform: template name: "Led BLE Connected" id: led_ble_connected_sensor ble_client: - mac_address: ${bluetooth_virtual_light_mac} id: led_strip_ble_client on_connect: then: - lambda: |- ESP_LOGD("virtual_ble_light", "Connected to BLE device"); ...
unit_of_measurement:minutes-platform:wifi_signalname:Wifi Signalupdate_interval:60sbinary_sensor:-platform:gpiodevice_class:powername:Buttonpin:number:PA18mode:INPUT_PULLUPinverted:trueon_press:-switch.toggle:relayswitch:-platform:gpioid:relayname:${friendly_name}pin:PA15restore_mode:RESTORE_DEFAULT_...