Closed gsgxnet closed 1 year ago
Use this repo instead: https://github.com/paveldn/m5paper_esphome
Thanks, I had tried 3 other forks before posting. Did not find that one. Any hint how to locate the best fork for external component xyz in the future?
Sorry but that repo is not useful as it is.
As that repo is not set up to be used within a yaml definition as it does not contain a components
or an esphome
folder. So including it, I get an error message from the linter, same from the compiler:
Could not find components folder for source. Please check the source contains a 'components' or 'esphome/components' folder.
Reason, the components are found it the custom_components
folder see:
https://github.com/paveldn/m5paper_esphome/tree/main/custom_components
To really close this issue I have forked the recommend repo and modified it.
Created a new branch named cc2c
.
In this branch there is a folder named components
, which is a plain copy of the custom_components
folder.
Now the external components can be used as follows:
external_components:
- source:
type: git
#url: https://github.com/jesserockz/m5paper-esphome
#url: https://github.com/paveldn/m5paper_esphome
url: https://github.com/gsgxnet/m5paper_esphome
ref: cc2c
components: [ bm8563 ]
It is important to use the ref:
declaration here, as the main branch is unmodified and still does not contain a components
folder.
The bm8563
time device for my M5TOUGH is defined as:
time:
- platform: bm8563
i2c_id: bus_a
address: 0x51
id: rtc_time
sleep_duration: 3600000ms
For the M5TOUGH only the bm8563
component is useful. For the original M5PAPER you should declare all the components needed or omit the components:
definition.
The problem
The external component sensor BM8563 from the jesserockz m5paper repo can not be used any more. Compilation fails, see log below. Reason same as in esphome issue 4617
I am reporting this issue here, as there is no issue reporting option at the external component repository
I do not have enough c++ and esphome knowledge to fork and fix myself
Which version of ESPHome has the issue?
2023.7.0
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.7.3
What platform are you using?
ESP32
Board
M5stack-core2 or other M5stack board with same RTC
Component causing the issue
BM8563
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
The specific BM8563 sensor is wanted as it can be used to control deep sleep of the board