Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with the latest 2021-10 release of esphome:( #2

Open
jascdk opened this issue Oct 26, 2021 · 8 comments
Open

Problems with the latest 2021-10 release of esphome:( #2

jascdk opened this issue Oct 26, 2021 · 8 comments

Comments

@jascdk
Copy link

jascdk commented Oct 26, 2021

Hi Buxtronix.

After I updated the ESPHOME add-on in HA to the latest version, my blinds will not move anymore.....have you experienced the same?

@Kite-Smurf
Copy link

Hi Buxtronix.

Updating ESP home to 2021.10 ( 2021.10.3 ) is resulting the following errors when trying to update the AM43 controllers.
Any idea as to why this coulod possible happen?

Thanks for help in advance.

INFO Reading configuration /config/esphome/am43-1.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing am43-1 (board: esp32dev; framework: arduino; platform: espressif32 @ 3.3.2)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
Dependency Graph
|-- 1.2.2
|-- 1.0
|-- 1.0
|-- 1.0
|-- 2.0.0
| |-- 1.2.2
|-- 1.1.0
|-- 1.0
Compiling /data/am43-1/.pioenvs/am43-1/src/esphome/components/am43/am43.cpp.o
Compiling /data/am43-1/.pioenvs/am43-1/src/esphome/components/am43/am43_base.cpp.o
Compiling /data/am43-1/.pioenvs/am43-1/src/esphome/components/am43/cover/am43_cover.cpp.o
Compiling /data/am43-1/.pioenvs/am43-1/src/esphome/components/api/api_pb2.cpp.o
src/esphome/components/am43/am43_base.cpp: In function 'std::cxx11::string esphome::am43::pkt_to_hex(const uint8_t*, uint16_t)':
src/esphome/components/am43/am43_base.cpp:10:20: error: 'memset' was not declared in this scope
memset(buf, 0, 64);
^
src/esphome/components/am43/am43_base.cpp: In member function 'esphome::am43::Am43Packet* esphome::am43::Am43Encoder::encode
(uint8_t, uint8_t*, uint8_t)':
src/esphome/components/am43/am43_base.cpp:68:45: error: 'memcpy' was not declared in this scope
memcpy(this->packet
.data, START_PACKET, 5);
^
*** [/data/am43-1/.pioenvs/am43-1/src/esphome/components/am43/am43_base.cpp.o] Error 1
src/esphome/components/am43/am43.cpp: In member function 'virtual void esphome::am43::Am43::gattc_event_handler(esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t*)':
src/esphome/components/am43/am43.cpp:33:26: error: 'Idle' is not a member of 'esphome::esp32_ble_tracker::ClientState'
this->node_state = espbt::ClientState::Idle;
^
src/esphome/components/am43/am43.cpp:56:26: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
this->node_state = espbt::ClientState::Established;
^
src/esphome/components/am43/am43.cpp:66:18: error: 'millis' was not declared in this scope
millis() - this->last_battery_update_ > 10000) {
^
src/esphome/components/am43/am43.cpp: In member function 'virtual void esphome::am43::Am43::update()':
src/esphome/components/am43/am43.cpp:95:27: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
if (this->node_state != espbt::ClientState::Established) {
^
src/esphome/components/am43/cover/am43_cover.cpp: In member function 'virtual void esphome::am43::Am43Component::loop()':
src/esphome/components/am43/cover/am43_cover.cpp:26:27: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
if (this->node_state == espbt::ClientState::Established && !this->logged_in_) {
^
src/esphome/components/am43/cover/am43_cover.cpp: In member function 'virtual void esphome::am43::Am43Component::control(const esphome::cover::CoverCall&)':
src/esphome/components/am43/cover/am43_cover.cpp:48:27: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
if (this->node_state != espbt::ClientState::Established) {
^
src/esphome/components/am43/cover/am43_cover.cpp: In member function 'virtual void esphome::am43::Am43Component::gattc_event_handler(esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t*)':
src/esphome/components/am43/cover/am43_cover.cpp:97:26: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
this->node_state = espbt::ClientState::Established;
^
*** [/data/am43-1/.pioenvs/am43-1/src/esphome/components/am43/am43.cpp.o] Error 1
*** [/data/am43-1/.pioenvs/am43-1/src/esphome/components/am43/cover/am43_cover.cpp.o] Error 1
========================= [FAILED] Took 11.79 seconds =========================

@WRLPDZ
Copy link

WRLPDZ commented Nov 20, 2021

Hi,

Similar problem here. I'm trying to install your component on ESP but receive errors.

Thank you for help in advance.

`INFO Reading configuration /config/esphome/bt-mini.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing bt-mini (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 3.3.2)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
Dependency Graph
|-- 1.2.2
|-- 1.0
|-- 1.0
|-- 1.0
|-- 2.1.0
| |-- 1.2.2
|-- 5.13.3
|-- 1.0
Compiling /data/bt-mini/.pioenvs/bt-mini/src/esphome/components/am43/am43.cpp.o
Compiling /data/bt-mini/.pioenvs/bt-mini/src/esphome/components/am43/am43_base.cpp.o
Compiling /data/bt-mini/.pioenvs/bt-mini/src/esphome/components/am43/cover/am43_cover.cpp.o
src/esphome/components/am43/am43_base.cpp: In function 'std::cxx11::string esphome::am43::pkt_to_hex(const uint8_t*, uint16_t)':
src/esphome/components/am43/am43_base.cpp:10:20: error: 'memset' was not declared in this scope
memset(buf, 0, 64);
^
src/esphome/components/am43/am43_base.cpp: In member function 'esphome::am43::Am43Packet* esphome::am43::Am43Encoder::encode
(uint8_t, uint8_t*, uint8_t)':
src/esphome/components/am43/am43_base.cpp:68:45: error: 'memcpy' was not declared in this scope
memcpy(this->packet
.data, START_PACKET, 5);
^
*** [/data/bt-mini/.pioenvs/bt-mini/src/esphome/components/am43/am43_base.cpp.o] Error 1
Compiling /data/bt-mini/.pioenvs/bt-mini/src/esphome/components/api/api_frame_helper.cpp.o
src/esphome/components/am43/am43.cpp: In member function 'virtual void esphome::am43::Am43::gattc_event_handler(esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t*)':
src/esphome/components/am43/am43.cpp:33:26: error: 'Idle' is not a member of 'esphome::esp32_ble_tracker::ClientState'
this->node_state = espbt::ClientState::Idle;
^
src/esphome/components/am43/am43.cpp:56:26: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
this->node_state = espbt::ClientState::Established;
^
src/esphome/components/am43/am43.cpp:66:18: error: 'millis' was not declared in this scope
millis() - this->last_battery_update_ > 10000) {
^
src/esphome/components/am43/am43.cpp: In member function 'virtual void esphome::am43::Am43::update()':
src/esphome/components/am43/am43.cpp:95:27: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
if (this->node_state != espbt::ClientState::Established) {
^
*** [/data/bt-mini/.pioenvs/bt-mini/src/esphome/components/am43/am43.cpp.o] Error 1
src/esphome/components/am43/cover/am43_cover.cpp: In member function 'virtual void esphome::am43::Am43Component::loop()':
src/esphome/components/am43/cover/am43_cover.cpp:26:27: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
if (this->node_state == espbt::ClientState::Established && !this->logged_in_) {
^
src/esphome/components/am43/cover/am43_cover.cpp: In member function 'virtual void esphome::am43::Am43Component::control(const esphome::cover::CoverCall&)':
src/esphome/components/am43/cover/am43_cover.cpp:48:27: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
if (this->node_state != espbt::ClientState::Established) {
^
src/esphome/components/am43/cover/am43_cover.cpp: In member function 'virtual void esphome::am43::Am43Component::gattc_event_handler(esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t*)':
src/esphome/components/am43/cover/am43_cover.cpp:97:26: error: 'Established' is not a member of 'esphome::esp32_ble_tracker::ClientState'
this->node_state = espbt::ClientState::Established;
^
*** [/data/bt-mini/.pioenvs/bt-mini/src/esphome/components/am43/cover/am43_cover.cpp.o] Error 1
========================= [FAILED] Took 12.13 seconds =========================`

@SAGV
Copy link

SAGV commented Nov 28, 2021

Same issue here :-(

@pixeldublu
Copy link

pixeldublu commented Nov 29, 2021

Seems like AM43 is now part of the official esphome repo. Just remove the external component and use latest esphome 😉

https://esphome.io/components/cover/am43.html

@Kite-Smurf
Copy link

Thanks a lot pixeldublu !!! This was the solution !

@onkel-joerg
Copy link

i got this:
`INFO Reading configuration /config/esphome/test.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing test (board: esp-wrover-kit; framework: arduino; platform: platformio/espressif32 @ 3.3.2)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
Dependency Graph
|-- 1.2.2
|-- 1.0
|-- 1.0
|-- 1.0
|-- 2.1.0
| |-- 1.2.2
|-- 1.1.0
|-- 1.0
Compiling /data/test/.pioenvs/test/src/esphome/components/am43/am43.cpp.o
Compiling /data/test/.pioenvs/test/src/esphome/components/am43/am43_base.cpp.o
Compiling /data/test/.pioenvs/test/src/esphome/components/am43/cover/am43_cover.cpp.o
In file included from src/esphome/components/am43/am43.cpp:1:0:
src/esphome/components/am43/am43.h:6:46: fatal error: esphome/components/sensor/sensor.h: No such file or directory
compilation terminated.
*** [/data/test/.pioenvs/test/src/esphome/components/am43/am43.cpp.o] Error 1
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_connection.cpp.o
========================= [FAILED] Took 17.50 seconds =========================`

@danielbrunt57
Copy link

Seems like AM43 is now part of the official esphome repo. Just remove the external component and use latest esphome 😉
https://esphome.io/components/cover/am43.html

The problem I think I am having with this official repo is that it does not appear to support sensor:, only cover:.
image

@danielbrunt57
Copy link

I figured out my problem. I had 5 folders in /config/esphome/.esphome/external_components which all referred to am43 from previous attempts to get this working. I emptied external_components. restarted ESPHome and my config for am43 is fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants