I just saw that, I’m updating to 1.16.2, hopefully my errors disappear. I’ll let you know. Thanks.
Error log after updating to 1.16.2
Validate: m5stickc2.yaml
INFO Reading configuration /config/esphome/m5stickc2.yaml…
ERROR Unable to load custom component axp192.sensor:
Traceback (most recent call last):
File “/opt/esphome/esphome/config.py”, line 134, in _lookup_module
module = importlib.import_module(f’custom_components.{domain}’)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 941, in _find_and_load_unlocked
File “”, line 219, in _call_with_frames_removed
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/config/esphome/custom_components/axp192/init.py”, line 1
^
SyntaxError: invalid syntax
ERROR Unable to load custom component st7735.display:
Traceback (most recent call last):
File “/opt/esphome/esphome/config.py”, line 134, in _lookup_module
module = importlib.import_module(f’custom_components.{domain}’)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/config/esphome/custom_components/st7735/display.py”, line 7
^
SyntaxError: invalid syntax
WARNING ESP32: Pin 10 (9-10) might already be used by the flash interface in QUAD IO flash mode.
WARNING ESP32: Pin 10 (9-10) might already be used by the flash interface in QUAD IO flash mode.
WARNING ESP32: Pin 9 (9-10) might already be used by the flash interface in QUAD IO flash mode.
INFO Detected timezone ‘EST’ with UTC offset -5 and daylight savings time from 14 March 02:00:00 to 07 November 02:00:00
INFO Detected timezone ‘EST’ with UTC offset -5 and daylight savings time from 14 March 02:00:00 to 07 November 02:00:00
Failed config
sensor.axp192: [source /config/esphome/m5stickc2.yaml:64]
Platform not found: ‘sensor.axp192’.
platform: axp192
address: 52
i2c_id: bus_a
update_interval: 30s
battery_level:
name: M5Stick Battery Level
id: m5stick_batterylevel
display.st7735: [source /config/esphome/m5stickc2.yaml:125]
Platform not found: ‘display.st7735’.
platform: st7735
cs_pin: GPIO5
dc_pin: GPIO23
reset_pin: GPIO18
rotation: 270
lambda: |-
it.print(80, 0, id(font1), ST77XX_WHITE, TextAlign::TOP_CENTER, “M5Stick Test”);
if (id(wifi_dbm).has_state()) {
char str[128];
sprintf(str, “%.0f dBm”, id(wifi_dbm).state);
it.print(80, 40, id(font2), ST77XX_RED, TextAlign::CENTER, str);
//it.print(80, 40, id(font2), ST77XX_RED, TextAlign::CENTER, “%.0f dBm”, id(wifi_dbm).state);
} else {
it.print(80, 40, id(font2), ST77XX_RED, TextAlign::CENTER, “No Wifi”);
}
// Print time in HH:MM format
it.strftime(80, 60, id(font3), ST77XX_BLUE, TextAlign::TOP_CENTER, “%H:%M”, id(sntp_time).now());