ESPHome ESP8266 การเชื่อมต่อทางกายภาพกับอุปกรณ์ของคุณ
ข้อมูลจำเพาะ
- ข้อกำหนดของระบบ: Control4OS 3.3+
เกินview
รวมอุปกรณ์ที่ใช้ ESPHome เข้ากับ Control4 ESPHome เป็นระบบโอเพนซอร์สที่เปลี่ยนไมโครคอนโทรลเลอร์ทั่วไป เช่น ESP8266 และ ESP32 ให้เป็นอุปกรณ์สมาร์ทโฮมผ่านการกำหนดค่า YAML ที่เรียบง่าย อุปกรณ์ ESPHome สามารถตั้งค่า ตรวจสอบ และควบคุมได้โดยใช้ web เบราว์เซอร์, Home Assistant หรือแพลตฟอร์มอื่นๆ ที่เข้ากันได้ ไดรเวอร์นี้ช่วยให้สามารถตรวจสอบและควบคุมอุปกรณ์ ESPHome ได้อย่างราบรื่นโดยตรงจากระบบ Control4 ของคุณ
ความต้องการของระบบ
- Control4OS 3.3+
คุณสมบัติ
- การสื่อสารเครือข่ายท้องถิ่นที่ไม่ต้องใช้บริการคลาวด์
- Real-time updates from all supported entities exposed by the device
- Supports encrypted connections using the device encryption key
- การสนับสนุนการเขียนโปรแกรมตัวแปร
ความเข้ากันได้
อุปกรณ์ที่ได้รับการยืนยัน
โดยทั่วไปแล้วไดรเวอร์นี้จะทำงานกับอุปกรณ์ ESPHome ทุกชนิด แต่เราได้ทดสอบอย่างละเอียดกับอุปกรณ์ต่อไปนี้แล้ว:
- ratgdo – คู่มือการกำหนดค่า
If you try this driver on a product listed above, and it works, let us know!
หน่วยงาน ESPHome ที่รองรับ
การติดตั้งโปรแกรมติดตั้ง
Only a single driver instance is required per ESPHome device. Multiple instances of this driver connected to the same device will have unexpected behavior. However, you can have multiple instances of this driver connected to different ESPHome devices.
การตั้งค่า DriverCentral Cloud
If you already have the DriverCentral Cloud driver installed in your project you can continue to Driver Installation.
This driver relies on the DriverCentral Cloud driver to manage licensing and automatic updates. If you are new to using DriverCentral you can refer to their Cloud Driver documentation สำหรับการตั้งค่ามัน
การติดตั้งไดร์เวอร์
Driver installation and setup are similar to most other IP-based drivers. Below is an outline of the basic steps for your convenience.
- ดาวน์โหลดเวอร์ชันล่าสุด
control4-esphome.zip
จาก DriverCentral. - Extract and install the
esphome.c4z
,esphome_light.c4z
, และesphome_lock.c4z
ผู้ขับรถ - Use the “Search” tab to find the “ESPHome” driver and add it to your project.
- Select the newly added driver in the “System Design” tab. You will notice that the Cloud Status reflects the license state. If you have purchased a license it will show “License Activated”, otherwise “Trial Running” and remaining trial duration.
- You can refresh license status by selecting the “DriverCentral Cloud” driver in the “System Design” tab and perform the “Check Drivers” action.
- กำหนดค่า การตั้งค่าอุปกรณ์ with the connection information.
- After a few moments the Driver Status will display “Connected”. If the driver fails to connect, set the Log Mode property to “Print” and re-set the IP Address field to reconnect. Then check the Lua output window for more information.
- Once connected, the driver will automatically create variables and connections for each supported entity type.
- To control lights and/or locks, use the “Search” tab to find the “ESPHome Light” and/or “ESPHome Lock” driver. Add one driver instance for each exposed light or lock entity in your project. In the “Connections” tab, select the “ESPHome” driver and bind the light or lock entities to the newly added drivers.
การตั้งค่าไดร์เวอร์
คุณสมบัติของไดรเวอร์
การตั้งค่าคลาวด์
- สถานะคลาวด์
Displays the DriverCentral cloud license status. - การอัพเดทอัตโนมัติ
Turns on/off the DriverCentral cloud automatic updates.
การตั้งค่าไดรเวอร์
- สถานะไดรเวอร์ (อ่านอย่างเดียว)
แสดงสถานะปัจจุบันของผู้ขับขี่ - Driver Version (read-only)
Displays the current version of the driver. - Log Level [ Fatal | Error | Warning | Info | Debug | Trace | Ultra ] Sets the logging level. Default is ข้อมูล.
- Log Mode [ Off | Print | Log | Print and Log ] Sets the logging mode. Default is ปิด.
การตั้งค่าอุปกรณ์
ที่อยู่ IP
Sets the device IP address (e.g. 192.168.1.30
). Domain names are allowed as long as they can be resolved to an accessible IP address by the controller. HTTPS is not supported.
บันทึก: If you are using an IP address, you should ensure it will not change by assigning a static IP or creating a DHCP reservation.
ท่าเรือ
Sets the device port. The default port for ESPHome devices is 6053
.
- Authentication Mode [ None | Password | Encryption Key ]
- Selects the authentication method for connecting to the ESPHome device.
ไม่มี: No authentication required.
รหัสผ่าน: Use a password for authentication (see below).
รหัสการเข้ารหัส: Use an encryption key for secure communication (see below).
- รหัสผ่าน
Shown only if Authentication Mode is set to Password. Sets the device password. This must match the password configured on the ESPHome device. - รหัสการเข้ารหัส
Shown only if Authentication Mode is set to Encryption Key. Sets the device encryption key for secure communication. This must match the encryption key configured on the ESPHome device.
ข้อมูลอุปกรณ์
- Name (read-only)
Displays the name of the connected ESPHome device. - Model (read-only)
Displays the model of the connected ESPHome device. - Manufacturer (read-only)
Displays the manufacturer of the connected ESPHome device. - MAC Address (read-only)
Displays the MAC address of the connected ESPHome device. - Firmware Version (read-only)
Displays the firmware version of the connected ESPHome device.
การดำเนินการของผู้ขับขี่
รีเซ็ตการเชื่อมต่อและตัวแปร
คำเตือน: This will reset all connection bindings and delete any programming associated with the variables.
รีเซ็ตการเชื่อมต่อและตัวแปรไดรเวอร์ วิธีนี้มีประโยชน์หากคุณเปลี่ยนอุปกรณ์ ESPHome ที่เชื่อมต่ออยู่ หรือมีการเชื่อมต่อหรือตัวแปรที่ล้าสมัย
คู่มือการกำหนดค่า ratgdo
คู่มือนี้ให้คำแนะนำในการกำหนดค่าไดรเวอร์ ESPHome เพื่อทำงานกับอุปกรณ์ ratgdo สำหรับการควบคุมประตูโรงรถผ่านรีเลย์ใน Control4 Composer Pro
เพิ่มไดรเวอร์ตัวควบคุมรีเลย์
เพิ่มไดรเวอร์ตัวควบคุมรีเลย์ที่ต้องการลงในโปรเจ็กต์ Control4 ของคุณใน Composer Pro
คุณสมบัติของตัวควบคุมรีเลย์
อุปกรณ์ ratgdo เปิดเผยเอนทิตี “Cover” ใน ESPHome ซึ่งแมปกับฟังก์ชันการทำงานของตัวควบคุมรีเลย์ใน Control4
จำนวนรีเลย์
อุปกรณ์ ratgdo ใช้การกำหนดค่ารีเลย์หลายตัวเพื่อควบคุมประตูโรงรถ ใน Composer Pro คุณควรกำหนดค่าการตั้งค่ารีเลย์ดังต่อไปนี้:
- Set to 2 Relays (Open/Close) or 3 Relays (Open/Close/Stop)
- The ratgdo device uses separate commands for opening and closing the garage door
- If your ratgdo firmware supports the “stop” command, configure for 3 relays to enable the stop functionality. If you are not sure, you can look at the ratgdo connections in Composer Pro to see if the “Stop Door” relay is available.
การกำหนดค่ารีเลย์
- ตั้งค่าเป็น ชีพจร
- ratgdo uses momentary pulses to trigger the garage door opener, similar to a wall button press
เวลาชีพจร
- Set all relay pulse times to 500 (ค่าเริ่มต้น)
- This is the duration the relay will be activated
รีเลย์อินเวอร์ต
- Set all invert relay properties to เลขที่ (ค่าเริ่มต้น)
ติดต่อ Debounce
- Set all contact debounce times to 250 (ค่าเริ่มต้น)
- This helps prevent false flapping of the garage door state sensors
การติดต่อแบบกลับด้าน
- Set all invert contact properties to เลขที่ (ค่าเริ่มต้น)
Exampเลอ พร็อพเพอร์ตี้ส์
เพื่อเป็นข้อมูลอ้างอิง นี่คือตัวอย่างampคุณสมบัติของตัวควบคุมรีเลย์ใน Composer Pro:
การเชื่อมต่อตัวควบคุมรีเลย์
รีเลย์
- เปิด: Connect to the ratgdo’s “Open Door” relay
- ปิด: Connect to the ratgdo’s “Close Door” relay
- หยุด: Connect to the ratgdo’s “Stop Door” relay, if available
เซนเซอร์สัมผัส
- ปิดการติดต่อ: Connect to the ratgdo’s “Door Closed” contact
- เปิดการติดต่อ: Connect to the ratgdo’s “Door Open” contact
Exampเลอ การเชื่อมต่อ
เพื่อเป็นข้อมูลอ้างอิง นี่คือตัวอย่างampลักษณะของการเชื่อมต่อที่ควรดูใน Composer Pro:
การเขียนโปรแกรม
You can create programming in Control4 to:
- Open/close the garage door based on events
- Monitor the garage door state
- Set up notifications for garage door status changes
- Create custom buttons on touchscreens and remotes
Example: Creating a Still Open Alert
Using the “Still Open Time” property from the relay controller driver:
- Set the “Still Open Time” to your desired duration (e.g., 10 minutes)
- Create a programming rule that triggers when the “Still Open” event fires
- Add actions to send notifications or perform other tasks
หน่วยงานเพิ่มเติม
Depending on your ratgdo device, firmware, and its capabilities, there may be additional entities exposed by the ESPHome driver. These can come as additional connections or driver variables.
Please refer to ratgdo’s documentation for more information on specific entities: https://ratgdo.github.io/esphome-ratgdo/webui_documentation.html
ข้อมูลนักพัฒนา
Copyright © 2025 Finite Labs LLC
All information contained herein is, and remains the property of Finite Labs LLC and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to
Finite Labs LLC and its suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Finite Labs LLC. For the latest information, please visit https://drivercentral.io/platforms/control4-drivers/utility/esphome
สนับสนุน
If you have any questions or issues integrating this driver with Control4 or ESPHome, you can contact us at driver-support@finitelabs.com or call/text us at +1 949-371-5805.
บันทึกการเปลี่ยนแปลง
เวอร์ชัน 20250715 – 2025-07-14
- ที่ตายตัว: แก้ไขข้อบกพร่องที่ทำให้ไม่สามารถค้นพบเอนทิตีในการเชื่อมต่อ
เวอร์ชัน 20250714 – 2025-07-14
- เพิ่ม: Added support for encrypted connections using the device encryption
เวอร์ชัน 20250619 – 2025-06-19
- เพิ่ม : Added ratgdo specific documentation
เวอร์ชัน 20250606 – 2025-06-06
- เพิ่ม :Initial Release
คำถามที่พบบ่อย
What devices are compatible with this driver?
This driver is compatible with any ESPHome device, with extensive testing done on ratgdo devices. If you try it on anyother device and it works, kindly inform us for verification.
เอกสาร / แหล่งข้อมูล
![]() |
ESPHome ESP8266 การเชื่อมต่อทางกายภาพกับอุปกรณ์ของคุณ [พีดีเอฟ] คู่มือการใช้งาน ESP8266, ESP32, ESP8266 การเชื่อมต่อทางกายภาพกับอุปกรณ์ของคุณ, ESP8266, การเชื่อมต่อทางกายภาพกับอุปกรณ์ของคุณ, การเชื่อมต่อกับอุปกรณ์ของคุณ, อุปกรณ์ของคุณ, อุปกรณ์ของคุณ |