esphome config for the new coordinator (lights)

This commit is contained in:
2024-12-06 16:10:39 +01:00
parent d4dc82ce4d
commit 49a39567de
3 changed files with 78 additions and 30 deletions
@@ -1,7 +1,5 @@
# Olimex ESP32-PoE with cc2652p connected to it. # ESP32 PoE board with ZigBee module (cc2652) connected to it via serial.
# # The purpose is to expose that serial port via TCP.
# Product page:
# https://github.com/tube0013/tube_gateways/tree/main/models/retired/tubeszb-cc2652-poe
# #
# cc2652p firmware (launchpad): # cc2652p firmware (launchpad):
# https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin # https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin
@@ -11,13 +9,12 @@
# https://github.com/JelmerT/cc2538-bsl # https://github.com/JelmerT/cc2538-bsl
esphome: esphome:
name: zigbee-coordinator name: "zigbee-coordinator-ch${channel}"
friendly_name: "ZigBee Coordinator" friendly_name: "ZigBee Coordinator CH${channel}"
area: "Storage"
project: project:
name: dasfoo.cc2652-poe name: "dasfoo.zigbee-coordinator-ch${channel}"
version: "4.0" version: "5.0"
on_boot: on_boot:
priority: 600 priority: 600
@@ -25,7 +22,7 @@ esphome:
- script.execute: cc2652_reset - script.execute: cc2652_reset
packages: packages:
device_base: !include templates/esp32-poe.yaml device_base: !include esp32-poe.yaml
esp32: esp32:
framework: framework:
@@ -42,7 +39,7 @@ script:
- switch.turn_on: zRST_gpio - switch.turn_on: zRST_gpio
- delay: 1s - delay: 1s
- switch.turn_off: zRST_gpio - switch.turn_off: zRST_gpio
- logger.log: "Delaying ~10 seconds for cc2652p2 to settle" - logger.log: "Delaying ~10 seconds for cc2652 to settle"
- delay: 11s - delay: 11s
- switch.turn_off: zBSL - switch.turn_off: zBSL
- logger.log: "Please try update with cc2538-bsl tool now" - logger.log: "Please try update with cc2538-bsl tool now"
@@ -54,19 +51,6 @@ script:
- delay: 15ms - delay: 15ms
- switch.turn_off: zRST_gpio - switch.turn_off: zRST_gpio
switch:
- platform: gpio
pin: 33
id: zRST_gpio
inverted: yes
restore_mode: ALWAYS_OFF
- platform: gpio
pin: 32
id: zBSL
inverted: yes
restore_mode: ALWAYS_OFF
button: button:
- platform: template - platform: template
name: "ZigBee Module reset" name: "ZigBee Module reset"
@@ -81,16 +65,11 @@ button:
on_press: on_press:
- script.execute: fw_update_mode - script.execute: fw_update_mode
uart:
id: uart_bus
rx_pin: GPIO5
tx_pin: GPIO16
baud_rate: 115200
stream_server: stream_server:
uart_id: uart_bus uart_id: uart_bus
id: ss id: ss
port: 6638 port: 6638
buffer_size: 1024
binary_sensor: binary_sensor:
- platform: stream_server - platform: stream_server
+33
View File
@@ -0,0 +1,33 @@
# Olimex ESP32-PoE with cc2652p connected to it.
#
# Product page:
# https://github.com/tube0013/tube_gateways/tree/main/models/retired/tubeszb-cc2652-poe
substitutions:
channel: "24"
esphome:
area: "Storage"
packages:
device_base: !include templates/tubeszb-coordinator.yaml
switch:
- platform: gpio
pin: 33
id: zRST_gpio
inverted: yes
restore_mode: ALWAYS_OFF
- platform: gpio
pin: 32
id: zBSL
inverted: yes
restore_mode: ALWAYS_OFF
uart:
id: uart_bus
rx_pin: GPIO5
tx_pin: GPIO16
baud_rate: 115200
rx_buffer_size: 1024
+36
View File
@@ -0,0 +1,36 @@
# ESP32-PoE with cc2652p7 connected to it.
#
# Primary purpose is home lights (and related sensors, such as motion) ZigBee
# network.
#
# The original config is:
# https://github.com/tube0013/TubesZB-ESPHome-Builder/blob/main/esphome-config/tubeszb-cc2652p7-poe-2023.yaml
substitutions:
channel: "25"
esphome:
area: "Office"
packages:
device_base: !include templates/tubeszb-coordinator.yaml
switch:
- platform: gpio
pin: 5
id: zRST_gpio
inverted: yes
restore_mode: ALWAYS_OFF
- platform: gpio
pin: 16
id: zBSL
inverted: yes
restore_mode: ALWAYS_OFF
uart:
id: uart_bus
rx_pin: GPIO36
tx_pin: GPIO4
baud_rate: 115200
rx_buffer_size: 1024