2024年11月21日星期四 下午8:25:31

Home Assistant ESPHome Series: ESPHome ( ESP8266 & ESP32)

2 年 前
#5928 引用
ESPHome 是一套工具,由 ESPHomelib 和 ESPHomeyaml 组成。前者安装在 ESP8266 或 ESP32 上,后者用于为其编译固件。

ESPHomelib 主要通过MQTT 与 Home Assistant 通讯,可以说专为 Home Assistant 而设计。简单易用且支持硬件多,可以通过简单而强大的配置控制ESP8266/ESP32,还可以通过接入家庭自动化系统实现远程被控。

在物联网里有一个固件叫做 ESPHome,它是一个通过简单而强大的配置文件控制 ESP8266/ESP32 并通过家庭自动化系统远程控制。

ESP8266是一个开发版(屏蔽了我们对电路知识的了解)





ESP32开发板指南
https://docs.espressif.com/projects/espressif-esp-dev-kits/zh_CN/latest/esp32h2/esp32-h2-devkitm-1/user_guide.html

4 different ways to install ESPHome


Install ESPHome using Home Assistant OS
(Insall via using  ESPHome addon)


Install ESPHome using ESP Web Tools from a browser
Manual Install via using ESPHome Web



Manual Install via using Other tools






Installing ESPHome Manually via using ESPHome Web
https://web.esphome.io/

https://esphome.io/projects/index.html

Installing ESPHome Manually via using Other tools
pip3 install esphome

https://esphome.io/guides/installing_esphome.html

乐鑫官网提供的固件写入软件flash_download_tool
https://github.com/espressif/esptool
https://www.espressif.com.cn/zh-hans/support/download/other-tools

ESP8266Flasher
从 https://github.com/nodemcu/nodemcu-flasher 获取
0
1 年 前
#22611 引用
esp32是硬件。ESP32是 ESP8266 的升级版

ESP8266 and ESP32 are microcontrollers made by the Chinese company Espressif.

esp8266


esp8266刷espeasy
ESP8266 D1MINI刷TASMOTA固件
ESP8266 编程是采用 arduino  来编程
esp8266刷esphome
0
10 个月 前
#25261 引用
ESP32 -乐鑫科技

https://www.espressif.com.cn/zh-hans/products/socs


ESP32 芯片
ESP32 模组
ESP32 开发板


芯片

ESP32-S 系列  包含ESP32-S2  ESP32-S3子系列
ESP32-C 系列
ESP32-H 系列
ESP32 系列


https://www.espressif.com.cn/zh-hans/products/socs



ESP32是一款低功耗的蓝牙和Wi-Fi模组。
它是ESP8266模组的替代产品。
支持蓝牙低功耗(BLE)4.x和Wi-Fi 802.11 b/g/n协议。

直接买esp32,就十几块

classic ESP32 boards and the new models: ESP32S2, ESP32C3 and ESP32S3

You will also need an ESP device such as the Wemos D1 Mini or ESP32 board a.
Usually the boards have an on-board USB port so simply connect it to your computer.


microcontrollers used in IoT products, both for manufacturers and creators in the DIY space.

Microcontrollers are teeny tiny computers with little processor power, memory and space that can interact with sensors, send infrared commands and many other things.

芯片
芯片8266


模组
模块ESP-12F
ESP-01s模块它是由一颗ESP8266作为主控再由一颗flash作为存储芯片组成,带有板载芯片供电采用3.3V电压

开发板
成品(开发板)D1 MINI
ESP32 DevkitV1














program the ESP32 via the Arduino IDE. You will then write your first program for the ESP32 using Arduino code.
0
10 个月 前
#25262 引用
稳定性

你要搞清楚。你的8266 是芯片8266 ,模块ESP-12F 还是成品(开发板)D1 MINI,nodemcu 。
如果 不是成品 就有可能 是你的设计电路有问题。
用成品是正常的,没有事的

用老版的8266的nodeMCU,加个1820传感器Lua脚本,上传乐为物联,连续跑了一年半,温度曲线都正常,没有重启过。



The Home Assistant integration consists of two parts:

node sensors: each ESP32 appears as a device automatically (because MQTT auto discovery), including entities to set max distance and disable/enable active scan or query

beacons: define each beacon in configuration.yaml (using mqtt_room integration)


software一ESPHome

买esp32,装esphome

ESPHome is a powerful bit of software that allows custom firmware to be compiled for smart home devices

There are two parts to ESPHome, the configuration tool and the firmware

With ESPHome users don’t program microcontrollers, they configure them. Tell ESPHome there is a temperature sensor on pin 3 of your ESP device and ESPHome will install custom software on your ESP device that makes this information available in Home Assistant.

目前z2m,接了22个绿米和小米的传感器,很稳定。

生态子设备。如果要用各种品牌的zigbee来个大杂烩(设备品类齐全,并且价格便宜,可以省很多钱),那么用z2m,硬件用cc2652p usb棒。

ESPHome 支持接入小米的蓝牙设备 Xiaomi Mijia BLE Sensors。可以直接利用 ESP32 充当蓝牙网关获取蓝牙设备的数据。

在esp32上装上esphome,可diy 制作蓝牙网关,接入米家传感器,实现蓝牙设备夲地化。接入ha
0
10 个月 前
#25263 引用
ESP8266
ESP8266系列.ESP-01系列,相应的还有ESP-02,03等等,它们使用的核心芯片都是相同的。

ESP-01s模块它是由一颗ESP8266作为主控再由一颗flash作为存储芯片组成,带有板载芯片供电采用3.3V电压






ESP8266 可刷espeasy 20230125 updated
0
10 个月 前
#25264 引用
ESP8266 - ESP-01
ESP-01做为MQTT的客户端,连接到MQTT Server, Home Assistant通过mqtt组件和MQTT Server通信,实现控制ESP-01的功能
0
10 个月 前
#25265 引用
How to connect ESP32 to home assistant

This esphome integration allows ESPHome devices to connect directly to Home Assistant with the native ESPHome API.

We identified three pain points:

Installing the software on the microcontroller.

Connecting the microcontroller to your wireless network.

Configure the software on the microcontroller.


Open source software like ESPHome, WLED and Tasmota allow users to turn their ESP8266 and ESP32 devices into powerful little machines that can gather information and control devices


Microcontrollers are just computers and so are nothing without their software.
0
10 个月 前
#25266 引用
flash - esp32刷esphome 软件


ESPhome-flasher
from https://github.com/esphome/esphome-flasher


Tasmotizer tool
Flashing and configuration is made very easy when done with the Tasmotizer tool. It does however lack the functionality offered by ESPHome.

ESP Web Tools Web has already been adopted as part of the onboarding by WLED and ESPEasy.

flash_download_tool 乐鑫官网提供的固件写入软件 flash_download_tool
https://www.espressif.com/zh-hans/support/download/other-tools



ESP Web Tools allows project websites to offer a great onboarding by enabling users to install the software on their microcontrollers via their browser. All the user has to do is connect their microcontroller to their computer and hit the install button on the website. ESP Web Tools will automatically select the right build for your microcontroller and install it.




直接买esp32,就十几块

they are cheap. Like, $5-including-shipping-from-China-cheap (AliExpress) or $15 for 2 on Amazon cheap.



板载开关
ESP32开发板具有两个按钮。一个标记为EN位于左上角的是复位按钮,用于复位ESP32芯片。左下角的另一个引导按钮是下载程序时使用的下载按钮。
0
10 个月 前
#25267 引用
how to configure an ESP32 chip with ESPhome
0
10 个月 前
#25270 引用
where to buy?

For china customers
乐鑫官方淘宝店
https://shop113593007.taobao.com/


For overseas customers
https://www.aliexpress.com/store/1102014060?spm=a2g0o.detail.1000007.1.63e06dcfF2aiJP


source:
https://www.espressif.com.cn/zh-hans/contact-us/get-samples
0