-
Notifications
You must be signed in to change notification settings - Fork 36
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
With esp32 and cem5825, unable to use tihe cod ”time: “ in yaml file. #12
Comments
The time in the code is not compatible with time components. |
Thank you for your reply, the code is already very good. It would be even better if it could be compatible with the time components. Looking forward to the adjusted code. |
I will rewrite the code. But i can't promise if it will be done in a few days. |
I changed
and it works correctly with the time component
|
Thanks for that, here is my modification. I changed logic to use just binary sensors for ease of use in HA and added some features for displaying entities in proper categories, etc.
|
Thanks for your code. When I make it with esp32 and CEM5825F, because I need to display the time, I add the following code in yaml, but there will be errors in compilation, and I ask you how to solve it.
time:
id: homeassistant_time
The error message when compiling is:
/config/esphome/display-cem5825f-mini32-zhuwo.yaml: In function 'void setup()':
/config/esphome/display-cem5825f-mini32-zhuwo.yaml:37:62: error: reference to 'time' is ambiguous
board: wemos_d1_mini32 #esp32dev
^
In file included from src/esphome/components/homeassistant/time/homeassistant_time.h:4,
from src/esphome.h:23,
from src/main.cpp:3:
src/esphome/components/time/real_time_clock.h:11:11: note: candidates are: 'namespace esphome::time { }'
namespace time {
^~~~
In file included from /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/newlib/platform_include/time.h:22,
from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/sys-include/sys/time.h:414,
from /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/newlib/platform_include/sys/time.h:16,
from /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/newlib/platform_include/pthread.h:18,
from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/xtensa-esp32-elf/no-rtti/bits/gthr-default.h:48,
from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/xtensa-esp32-elf/no-rtti/bits/gthr.h:151,
from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/ext/atomicity.h:35,
from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/bits/basic_string.h:39,
from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/string:52,
from src/esphome/components/socket/socket.h:2,
from src/esphome/components/api/api_frame_helper.h:13,
from src/esphome/components/api/api_connection.h:3,
from src/esphome.h:3,
from src/main.cpp:3:
/data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/sys-include/time.h:59:11: note: 'time_t time(time_t*)'
time_t time (time_t *_timer);
^~~~
/config/esphome/display-cem5825f-mini32-zhuwo.yaml:45:66: error: reference to 'time' is ambiguous
type: git
^
In file included from src/esphome/components/homeassistant/time/homeassistant_time.h:4,
from src/esphome.h:23,
from src/main.cpp:3:
src/esphome/components/time/real_time_clock.h:11:11: note: candidates are: 'namespace esphome::time { }'
namespace time {
^~~~
In file included from /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/newlib/platform_include/time.h:22,
from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/sys-include/sys/time.h:414,
The text was updated successfully, but these errors were encountered: