You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
salve è da un anno che stavo facendo delle prove con il tuo prg per allarme kyo , dopo un anno ho cambiato rasberry pi4 e aggiornato esphome , però adesso non mi fa più la compilazione del progetto e questo è il log:
INFO ESPHome 2024.12.2
INFO Reading configuration /config/esphome/esp.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing espkyo (board: esp01_1m; framework: arduino; platform: platformio/[email protected])
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.6
Compiling .pioenvs/espkyo/src/main.cpp.o
Compiling .pioenvs/espkyo/lib67b/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling .pioenvs/espkyo/lib67b/ESP8266WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/espkyo/lib67b/ESP8266WiFi/enable_wifi_at_boot_time.cpp.o
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Archiving .pioenvs/espkyo/lib67b/libESP8266WiFi.a
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
In file included from src/main.cpp:70:
src/kyo-alarm.h:51:9: error: 'TextSensor' does not name a type
51 | TextSensor *alarmStatusSensor = new TextSensor();
| ^~~~~~~~~~
src/kyo-alarm.h:52:9: error: 'TextSensor' does not name a type
52 | TextSensor *modelSensor = new TextSensor();
| ^~~~~~~~~~
src/kyo-alarm.h:53:9: error: 'TextSensor' does not name a type
53 | TextSensor *firmwareSensor = new TextSensor();
| ^~~~~~~~~~
src/kyo-alarm.h: In member function 'virtual void KyoAlarmComponent::setup()':
src/kyo-alarm.h:74:13: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
74 | alarmStatusSensor->publish_state("unavailable");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h: In member function 'void KyoAlarmComponent::processCommandRequest(std::string, std::string)':
src/kyo-alarm.h:251:21: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
251 | alarmStatusSensor->publish_state("arming");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:256:21: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
256 | alarmStatusSensor->publish_state("arming");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:261:21: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
261 | alarmStatusSensor->publish_state("arming");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:266:21: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
266 | alarmStatusSensor->publish_state("pending");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h: In member function 'bool KyoAlarmComponent::getAlarmInfo()':
src/kyo-alarm.h:306:17: error: 'modelSensor' was not declared in this scope; did you mean 'zoneSensor'?
306 | modelSensor->publish_state(model.c_str());
| ^~~~~~~~~~~
| zoneSensor
src/kyo-alarm.h:307:17: error: 'firmwareSensor' was not declared in this scope
307 | firmwareSensor->publish_state(firmware.c_str());
| ^~~~~~~~~~~~~~
In file included from src/main.cpp:70:
src/kyo-alarm.h: In member function 'bool KyoAlarmComponent::getRealTimeStatus()':
src/kyo-alarm.h:372:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
372 | alarmStatusSensor->publish_state("triggered");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:378:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
378 | alarmStatusSensor->publish_state("pending");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h: In member function 'bool KyoAlarmComponent::getStatus()':
src/kyo-alarm.h:414:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
414 | alarmStatusSensor->publish_state("disarmed");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:418:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
418 | alarmStatusSensor->publish_state("armed_home");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:422:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
422 | alarmStatusSensor->publish_state("armed_away");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:426:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
426 | alarmStatusSensor->publish_state("armed_night");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/WebRequest.cpp.o
*** [.pioenvs/espkyo/src/main.cpp.o] Error 1
========================= [FAILED] Took 20.72 seconds =========================
The text was updated successfully, but these errors were encountered:
Ciao,
non sono certo della compatibilità con le ultimissime versioni di esphome, ma io lo sto usando con la 2024.12.3, quindi più nuova della tua e comunque allineata alle stesse funzionalità. Prova a copiare qui anche il file yaml.
salve è da un anno che stavo facendo delle prove con il tuo prg per allarme kyo , dopo un anno ho cambiato rasberry pi4 e aggiornato esphome , però adesso non mi fa più la compilazione del progetto e questo è il log:
INFO ESPHome 2024.12.2
INFO Reading configuration /config/esphome/esp.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing espkyo (board: esp01_1m; framework: arduino; platform: platformio/[email protected])
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.6
Compiling .pioenvs/espkyo/src/main.cpp.o
Compiling .pioenvs/espkyo/lib67b/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling .pioenvs/espkyo/lib67b/ESP8266WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/espkyo/lib67b/ESP8266WiFi/enable_wifi_at_boot_time.cpp.o
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Archiving .pioenvs/espkyo/lib67b/libESP8266WiFi.a
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
In file included from src/main.cpp:70:
src/kyo-alarm.h:51:9: error: 'TextSensor' does not name a type
51 | TextSensor *alarmStatusSensor = new TextSensor();
| ^~~~~~~~~~
src/kyo-alarm.h:52:9: error: 'TextSensor' does not name a type
52 | TextSensor *modelSensor = new TextSensor();
| ^~~~~~~~~~
src/kyo-alarm.h:53:9: error: 'TextSensor' does not name a type
53 | TextSensor *firmwareSensor = new TextSensor();
| ^~~~~~~~~~
src/kyo-alarm.h: In member function 'virtual void KyoAlarmComponent::setup()':
src/kyo-alarm.h:74:13: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
74 | alarmStatusSensor->publish_state("unavailable");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h: In member function 'void KyoAlarmComponent::processCommandRequest(std::string, std::string)':
src/kyo-alarm.h:251:21: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
251 | alarmStatusSensor->publish_state("arming");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:256:21: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
256 | alarmStatusSensor->publish_state("arming");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:261:21: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
261 | alarmStatusSensor->publish_state("arming");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:266:21: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
266 | alarmStatusSensor->publish_state("pending");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h: In member function 'bool KyoAlarmComponent::getAlarmInfo()':
src/kyo-alarm.h:306:17: error: 'modelSensor' was not declared in this scope; did you mean 'zoneSensor'?
306 | modelSensor->publish_state(model.c_str());
| ^~~~~~~~~~~
| zoneSensor
src/kyo-alarm.h:307:17: error: 'firmwareSensor' was not declared in this scope
307 | firmwareSensor->publish_state(firmware.c_str());
| ^~~~~~~~~~~~~~
In file included from src/main.cpp:70:
src/kyo-alarm.h: In member function 'bool KyoAlarmComponent::getRealTimeStatus()':
src/kyo-alarm.h:372:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
372 | alarmStatusSensor->publish_state("triggered");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:378:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
378 | alarmStatusSensor->publish_state("pending");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h: In member function 'bool KyoAlarmComponent::getStatus()':
src/kyo-alarm.h:414:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
414 | alarmStatusSensor->publish_state("disarmed");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:418:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
418 | alarmStatusSensor->publish_state("armed_home");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:422:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
422 | alarmStatusSensor->publish_state("armed_away");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
src/kyo-alarm.h:426:25: error: 'alarmStatusSensor' was not declared in this scope; did you mean 'alarmStatus'?
426 | alarmStatusSensor->publish_state("armed_night");
| ^~~~~~~~~~~~~~~~~
| alarmStatus
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling .pioenvs/espkyo/lib874/ESPAsyncWebServer-esphome/WebRequest.cpp.o
*** [.pioenvs/espkyo/src/main.cpp.o] Error 1
========================= [FAILED] Took 20.72 seconds =========================
The text was updated successfully, but these errors were encountered: