konnected-io / konnected-esphome

ESPHome firmware configuration and recipes for Konnected devices
Other
50 stars 31 forks source link

Adopting Alarm Panel Pro 1.8 breaks ethernet #15

Closed d4l3k closed 8 months ago

d4l3k commented 11 months ago

Hi, I recently broke ethernet on my device by clicking the adopt button in ESPHome. Documenting the issue so others can fix it as well.

The default config when adopting uses the LAN8720 config rather than the RTL8201 config needed by Alarm Panel Pro 1.8.

lan87xx: lan87xx_init(499): wrong chip ID

Updating the esphome configuration to use:

  konnected.alarm-panel-pro-esp32-wifi: github://konnected-io/konnected-esphome/release/alarm-panel-pro-esp32-rtl8201.yaml@master

instead of the generic one on master resolves the issue.

It seems like the dashboard_import section should be changed for the release builds to point to the specific configs rather than the generic one.

https://github.com/konnected-io/konnected-esphome/blob/master/alarm-panel-pro-esp32-ethernet.yaml#L93-L94

wjwnz commented 8 months ago

I think I may be having the same issue deploying from the ESPHome integration in Home Assistant:

konnected.alarm-panel-pro-esp32-wifi: github://konnected-io/konnected-esphome/alarm-panel-pro-esp32-ethernet.yaml@master

https://github.com/konnected-io/konnected-esphome/issues/22

Will console into the alarm later and see, mine is also 1.8 Pro

heythisisnate commented 8 months ago

Add the following to the top of your adopted YAML in the substitutions section:

  ethernet_type: RTL8201

For an Alarm Panel Pro v1.8 connecting via Ethernet your adopted YAML config should look like this:

substitutions:
  name: alarm-panel-pro-XXXXXX
  ethernet_type: RTL8201 # Alarm Panel Pro 1.8 and up
packages:
  konnected.alarm-panel-pro-esp32-ethernet: github://konnected-io/konnected-esphome/alarm-panel-pro-esp32-ethernet.yaml@master
esphome:
  name: ${name}
  name_add_mac_suffix: false

api:
  encryption:
    key: XXXXXX

# add any customizations here
wjwnz commented 8 months ago

Perfect!

[07:14:06][C][ethernet:354]: IP Address: 192.168.3.46

[07:14:06][C][ethernet:356]: Subnet: 255.255.255.0 [07:14:06][C][ethernet:357]: Gateway: 192.168.3.1 [07:14:06][C][ethernet:362]: DNS1: 192.168.3.1 [07:14:06][C][ethernet:363]: DNS2: 0.0.0.0 [07:14:06][C][ethernet:383]: MAC Address: C0:49:EF:51:27:3B [07:14:06][C][ethernet:388]: Is Full Duplex: YES [07:14:06][C][ethernet:393]: Link Speed: 100 [07:14:06][C][ethernet:227]: MDC Pin: 16 [07:14:06][C][ethernet:228]: MDIO Pin: 17 [07:14:06][C][ethernet:229]: Type: RTL8201 [07:14:06][C][ethernet:230]: PHY addr: 0