Giter Site home page Giter Site logo

esphome_components's People

Contributors

berfenger avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

esphome_components's Issues

MAX44009 sensor is not compatible with ESPHome 2021.10.x

Many I2CComponent methods were removed by this change esphome/esphome#2303. This cases compilation issues like below.

BTW, Seems like your mcp4728 code has the same issue.

Processing esp32 (board: lolin_d32_pro; 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
|-- 1.0.1
|-- 5.13.3
|-- 1.0
....

Compiling /data/esp32/.pioenvs/esp32/src/esphome/components/max44009/max44009.cpp.o
src/esphome/components/max44009/max44009.cpp: In member function 'virtual void esphome::max44009::MAX44009Sensor::setup()':
src/esphome/components/max44009/max44009.cpp:32:9: error: 'class esphome::max44009::MAX44009Sensor' has no member named 'raw_begin_transmission'
this->raw_begin_transmission();
^
src/esphome/components/max44009/max44009.cpp:33:14: error: 'class esphome::max44009::MAX44009Sensor' has no member named 'raw_end_transmission'
if (!this->raw_end_transmission()) {
^
*** [/data/esp32/.pioenvs/esp32/src/esphome/components/max44009/max44009.cpp.o] Error 1

hal.h missing in si1145.cpp

Hi,
I have noticed that #include "esphome/core/hal.h" is missing in si1145.cpp causing esphome not to compile.

I have added a pull request. Note: it is my first one so sorry if I haven't done it correctly.

Regards,
Markus

SI1145 fails to compile with esphome 2022.8.1

Not sure when this stopped working, but when I try to include the SI1145 external component, I get this compilation error:

src/esphome/components/si1145/si1145.cpp: In member function 'virtual void esphome::si1145::SI1145Component::update()':
src/esphome/components/si1145/si1145.cpp:108:11: error: 'delay' was not declared
 in this scope
   delay(20);
           ^
src/esphome/components/si1145/si1145.cpp: In member function 'void esphome::si1145::SI1145Component::reset_()':
src/esphome/components/si1145/si1145.cpp:320:11: error: 'delay' was not declared in this scope
   delay(10);
           ^

Adding an #import "Arduino.h" to si1145.cpp fixes the problem.

ESP Home 2021.10.0 error

Hello there;
Module fails after ESP Home 2021.10.0 update. :(

Error Detail:
`HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
PACKAGES:

  • framework-arduinoespressif32 3.10006.210326 (1.0.6)
  • tool-esptoolpy 1.30100.210531 (3.1.0)
  • toolchain-xtensa32 2.50200.97 (5.2.0)
    LDF Modes: Finder ~ off, Compatibility ~ soft
    Dependency Graph
    |-- 1.2.2
    |-- 1.0
    |-- 1.0
    |-- 1.0
    |-- 1.3.0
    | |-- 1.2.2
    |-- 1.1.0
    |-- 5.13.3
    |-- 1.0
    Compiling /data/aran-iot-11/.pioenvs/aran-iot-11/src/esphome/components/cse7761/cse7761.cpp.o
    Compiling /data/aran-iot-11/.pioenvs/aran-iot-11/src/esphome/components/esp32/gpio_arduino.cpp.o
    Compiling /data/aran-iot-11/.pioenvs/aran-iot-11/src/esphome/components/esp32/gpio_idf.cpp.o
    Compiling /data/aran-iot-11/.pioenvs/aran-iot-11/src/esphome/components/esp32/preferences.cpp.o
    In file included from src/esphome/components/sensor/sensor.h:3:0,
    from src/esphome/components/cse7761/cse7761.h:3,
    from src/esphome/components/cse7761/cse7761.cpp:1:
    src/esphome/components/cse7761/cse7761.cpp: In member function 'bool esphome::cse7761::CSE7761Sensor::Cse7761ReadOnce(uint32_t, uint32_t, uint32_t*)':
    src/esphome/components/cse7761/cse7761.cpp:221:38: error: 'PSTR' was not declared in this scope
    ESP_LOGD(TAG, PSTR("C61: Rx none"));
    ^
    src/esphome/core/log.h:72:36: note: in definition of macro 'ESPHOME_LOG_FORMAT'
    #define ESPHOME_LOG_FORMAT(format) format
    ^
    src/esphome/core/log.h:155:28: note: in expansion of macro 'esph_log_d'
    #define ESP_LOGD(tag, ...) esph_log_d(tag, VA_ARGS)
    ^
    src/esphome/components/cse7761/cse7761.cpp:221:5: note: in expansion of macro 'ESP_LOGD'
    ESP_LOGD(TAG, PSTR("C61: Rx none"));
    ^
    src/esphome/components/cse7761/cse7761.cpp:225:42: error: 'PSTR' was not declared in this scope
    ESP_LOGD(TAG, PSTR("C61: Rx overflow"));
    ^
    src/esphome/core/log.h:72:36: note: in definition of macro 'ESPHOME_LOG_FORMAT'
    #define ESPHOME_LOG_FORMAT(format) format
    ^
    src/esphome/core/log.h:155:28: note: in expansion of macro 'esph_log_d'
    #define ESP_LOGD(tag, ...) esph_log_d(tag, VA_ARGS)
    ^
    src/esphome/components/cse7761/cse7761.cpp:225:5: note: in expansion of macro 'ESP_LOGD'
    ESP_LOGD(TAG, PSTR("C61: Rx overflow"));
    ^
    src/esphome/components/cse7761/cse7761.cpp: In member function 'bool esphome::cse7761::CSE7761Sensor::Cse7761ChipInit()':
    src/esphome/components/cse7761/cse7761.cpp:275:50: error: 'PSTR' was not declared in this scope
    ESP_LOGD(TAG, PSTR("C61: Default calibration"));
    ^
    src/esphome/core/log.h:72:36: note: in definition of macro 'ESPHOME_LOG_FORMAT'
    #define ESPHOME_LOG_FORMAT(format) format
    ^
    src/esphome/core/log.h:155:28: note: in expansion of macro 'esph_log_d'
    #define ESP_LOGD(tag, ...) esph_log_d(tag, VA_ARGS)
    ^
    src/esphome/components/cse7761/cse7761.cpp:275:5: note: in expansion of macro 'ESP_LOGD'
    ESP_LOGD(TAG, PSTR("C61: Default calibration"));
    ^
    src/esphome/components/cse7761/cse7761.cpp:435:43: error: 'PSTR' was not declared in this scope
    ESP_LOGD(TAG, PSTR("C61: Write failed"));
    ^
    src/esphome/core/log.h:72:36: note: in definition of macro 'ESPHOME_LOG_FORMAT'
    #define ESPHOME_LOG_FORMAT(format) format
    ^
    src/esphome/core/log.h:155:28: note: in expansion of macro 'esph_log_d'
    #define ESP_LOGD(tag, ...) esph_log_d(tag, VA_ARGS)
    ^
    src/esphome/components/cse7761/cse7761.cpp:435:5: note: in expansion of macro 'ESP_LOGD'
    ESP_LOGD(TAG, PSTR("C61: Write failed"));
    ^
    src/esphome/components/cse7761/cse7761.cpp: In member function 'void esphome::cse7761::CSE7761Sensor::Cse7761GetData()':
    src/esphome/components/cse7761/cse7761.cpp:471:53: error: 'PSTR' was not declared in this scope
    ESP_LOGD(TAG, PSTR("C61: F%d, U%d, I%d/%d, P%d/%d"), CSE7761Data.frequency,
    ^
    src/esphome/core/log.h:72:36: note: in definition of macro 'ESPHOME_LOG_FORMAT'
    #define ESPHOME_LOG_FORMAT(format) format
    ^
    src/esphome/core/log.h:155:28: note: in expansion of macro 'esph_log_d'
    #define ESP_LOGD(tag, ...) esph_log_d(tag, VA_ARGS)
    ^
    src/esphome/components/cse7761/cse7761.cpp:471:3: note: in expansion of macro 'ESP_LOGD'
    ESP_LOGD(TAG, PSTR("C61: F%d, U%d, I%d/%d, P%d/%d"), CSE7761Data.frequency,
    ^
    *** [/data/aran-iot-11/.pioenvs/aran-iot-11/src/esphome/components/cse7761/cse7761.cpp.o] Error 1
    ========================= [FAILED] Took 10.08 seconds =========================`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.