-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Compiling .pioenvs/tubeszb-cc2652p2-eth-2023/src/esphome/components/uart/uart_component.cpp.o
In file included from src/esphome/core/component.h:10,
from src/esphome/components/stream_server/stream_server.h:20,
from src/esphome/components/stream_server/stream_server.cpp:17:
src/esphome/components/stream_server/stream_server.cpp: In member function 'virtual void StreamServerComponent::dump_config()':
src/esphome/components/stream_server/stream_server.cpp:92:37: error: 'get_ip_address' is not a member of 'esphome::network'; did you mean 'get_ip_addresses'?
92 | esphome::network::get_ip_address().str().c_str(),
| ^~~~~~~~~~~~~~
src/esphome/core/log.h:108:101: note: in definition of macro 'esph_log_config'
108 | ::esphome::esp_log_printf_(ESPHOME_LOG_LEVEL_CONFIG, tag, LINE, ESPHOME_LOG_FORMAT(format), ##VA_ARGS)
| ^~~~~~~~~~~
src/esphome/components/stream_server/stream_server.cpp:90:5: note: in expansion of macro 'ESP_LOGCONFIG'
90 | ESP_LOGCONFIG(TAG, " Address: %s:%u",
| ^~~~~~~~~~~~~
*** [.pioenvs/tubeszb-cc2652p2-eth-2023/src/esphome/components/stream_server/stream_server.cpp.o] Error 1
========================= [FAILED] Took 28.36 seconds =========================
Config:
esphome:
name: tubeszb-cc2652p2-eth-2023
project:
name: tubeszb.cc2652p2-eth-2023
version: "3.0"
esp32:
board: esp32dev
framework:
type: arduino
external_components:
#- source: github://oxan/esphome-stream-server
- source: github://tube0013/esphome-stream-server
components: [stream_server]
dashboard_import:
package_import_url: github://tube0013/tube_gateways/models/current/tubeszb-cc2652-eth_usb/firmware/esphome/tubezb-cc2652p2-ethusb-2023.yaml
#WT32-ETH01 Ethernet
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
#clk_mode: GPIO0_IN
#new clk code
clk:
pin: GPIO0
mode: CLK_EXT_IN
#end new clk code
phy_addr: 1
power_pin: GPIO16
Enable logging
logger:
level: DEBUG
Enable Home Assistant API
api:
reboot_timeout: 0s
ota:
- platform: esphome
web_server:
port: 80
local: True
script:
- id: fw_update_mode
then:- switch.turn_on: zBSL
- delay: 1s
- switch.turn_on: zRST_gpio
- delay: 1s
- switch.turn_off: zRST_gpio
- logger.log: "Delaying ~10 seconds for cc2652p2 to settle"
- delay: 11s
- switch.turn_off: zBSL
- logger.log: "Please try update with cc2538-bsl tool now"
- logger.log: "cc-bsl usage: cc2538-bsl.py -p socket://ip-of-gw:6638 -evw firmware.hex"
switch:
-
platform: gpio
pin: 33
id: zRST_gpio
inverted: yes
restore_mode: ALWAYS_OFF -
platform: gpio
pin: 32
name: "zBSL"
id: zBSL
inverted: yes
restore_mode: ALWAYS_OFF -
platform: template
name: "Prep the cc2652p2 for firmware update"
turn_on_action:- script.execute: fw_update_mode
turn_off_action: - button.press: zRST
- script.execute: fw_update_mode
button:
-
platform: restart
name: "Restart the Device" -
platform: template
name: "Zigbee Module Reset"
id: zRST
on_press:- switch.turn_on: zRST_gpio
- delay: 15ms
- switch.turn_off: zRST_gpio
uart:
id: uart_bus
rx_pin: GPIO17
tx_pin: GPIO5
baud_rate: 115200
stream_server:
uart_id: uart_bus
id: ss
port: 6638 # optional, default is 6638
binary_sensor:
- platform: stream_server
stream_server: ss
name: "TubesZB Serial Connected"
mdns:
services:
- service: "_tubeszb"
protocol: "_tcp"
port: 6638
txt:
version: 1.0
name: TubesZB
radio_type: znp
baud_rate: 115200
data_flow_control: software