luar123 / zigbee_esphome

External zigbee component
93 stars 8 forks source link

Not able to install - "ESP32-H2" vs. "ESP32H2" #12

Open stefangries opened 6 days ago

stefangries commented 6 days ago

I'm using a basic yaml to try to install my ESP-32-H2-DevKit:

esphome:
  name: zig3

external_components:
  - source: components
    components: [ zigbee ]

esp32:
  board: esp32-h2-devkitm-1
  flash_size: 4MB
  partitions: partitions_zb.csv
  framework:
    type: esp-idf
    version: 5.1.4
    source: https://github.com/pioarduino/esp-idf/releases/download/v5.1.4.240921/esp-idf-v5.1.4.zip
    platform_version: https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
    sdkconfig_options:
      CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y
  variant: esp32h2

When trying to install it, I get this error: image

When not using a yaml to install and instead using the "+ New Device" button, I get this: image

Seems like the device identifies as "ESP32-H2" while the yaml expects an "ESP32H2". Where is my mistake? What can I do to install? Is this a bug?

luar123 commented 5 days ago

Is this the hass addon? Can you get a detailed log? I would try to use esphome from the command line. Anyway, I don't think this is related to the zigbee component, so please ask at the esphome discord for help or fill a bug in the addon repository (esp32H2 is not officially supported).

rvalitov commented 5 days ago

You can't install the firmware using ESPHome GUI because ESPHome does not support ESP32-H2 in GUI mode. You should install it only using CLI mode.

stefangries commented 5 days ago

@rvalitov @luar123 Thanks for the advice, I will try to install from command line.

rvalitov commented 5 days ago

I would also recommend using the dev branch of Esphome in CLI mode. Because I see that many features for newer devices are still missing in official release but are available in dev version. So I use a standard version of Esphome in HA, but dev version in CLI mode to compile and upload firmware to devices such as H2 C6 H6 etc.