点击visit device会跳转到esp32的后台,在后台我们能看到esp32模块的名字ESP32-XXXX-XXXX,以及当前模块的IP地址。 编写固件 打开ESPHOME(docker方式或者HSos方式),这时一般就会显示discover模块了。我们在右下角点击“new device”-“continue”-然后把发现的名字填进去ESP32-XXXX-XXXX,
esp8266使用esphome接入hass 对于生成配置文件的更改 此处nodemcu泛指集成的开发板,一般十几块钱一块 下方使用的是D1,对应的针脚是GPIO5 esp8266: board: nodemcuv2 binary_sensor: - platform: gpio pin: GPIO5 name: "红外传感器" device_class: motion 针脚定义参考图 参考官方文档 https://esphome.io/compone...
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 ...
"xuni9"device_class:door-platform:gpiopin:number:D10name:"xuni10"device_class:doortext_sensor:...
autoopendoorlockname:"自动开锁模式"output:'autounlock'on_turn_on:if:condition:binary_sensor.is_on...
binary_sensor: - platform: gpio name: "Relay 1 Switch" pin: D1 device_class: switch state_on: HIGH state_off: LOW - platform: gpio name: "Relay 2 Switch" pin: D2 device_class: switch state_on: HIGH state_off: LOW - platform: gpio name: "Relay 3 Switch" pin: D3 device...
binary_sensor: - platform: gpio pin: number: GPIO3 inverted: true name: "Flame Detecctor" device_class: smokeb. 将火焰传感器添加到仪表板 您可以参考上面的光传感器或温度和湿度传感器。 带有Yaml 文件的其他传感器 通过Seeed Studio Contributor Program 支持,感谢 Mohammed。下面列出了更多支持的传感...
password: "123" web_server: port: 80 switch: - platform: gpio pin: GPIO0 name: "书房灯1" id: relay2 inverted: True binary_sensor: - platform: gpio pin: GPIO2 name: "press_switch_lib1" device_class: opening filters: - delayed_on_off: 100ms #这里一定要加这个这个起到滤波的作用。
The problem Consider the following YAML binary_sensor: - platform: template name: "" device_class: gas lambda: 'return true;' - platform: template name: "" device_class: lock lambda: 'return true;' - platform: template name: "xyz" device...
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: ...