refactor: rework the network settings page (#307)

* fix: make W5500 interrupt and reset pins optional

* feat: rework the network settings page

* build: split elvinhome THRM ONE into BLE and Ethernet environments

* ci: target dev for Dependabot version updates

* chore: bump actions/cache from 5 to 6 (#302)

Bumps [actions/cache](https://github.com/actions/cache) from 5 to 6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump actions/setup-python from 6 to 7 (#303)

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump actions/download-artifact from 5 to 8 (#304)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump actions/checkout from 6 to 7 (#305)

Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump actions/setup-node from 5 to 6 (#306)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* revert: restore the default branch for Dependabot version updates

This reverts commit a7b2120740.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Yuriianddependabot[bot] authored and GitHub committed 2026-12-03 10:02:11 +03:00
1 parent 5fb4231201
commit 6a82768497
12 files changed
+495 -461

No files matched your search

+16 -6
View File
@@ -192,8 +192,8 @@ bool isEthernetConfigured(const NetworkSettings& config) {
GPIO_IS_VALID_OUTPUT(gpios.mosi) &&
GPIO_IS_VALID_INPUT(gpios.miso) &&
GPIO_IS_VALID_OUTPUT(gpios.cs) &&
GPIO_IS_VALID_INPUT(gpios.irq) &&
GPIO_IS_VALID_OUTPUT(gpios.rst);
(gpios.irq == GPIO_IS_NOT_CONFIGURED || GPIO_IS_VALID_INPUT(gpios.irq)) &&
(gpios.rst == GPIO_IS_NOT_CONFIGURED || GPIO_IS_VALID_OUTPUT(gpios.rst));
#else
(void)config;
return false;
@@ -589,10 +589,20 @@ static bool startEthernet() {
const auto& gpios = networkSettings.ethernet.w5500;
ESP_LOGI(L_NETWORK, "Initialize W5500 Ethernet");
if (!ETH.begin(
ETH_PHY_W5500, 1, gpios.cs, gpios.irq, gpios.rst,
SPI2_HOST, gpios.clk, gpios.miso, gpios.mosi, 12
)) {
const bool initialized = ETH.begin(
ETH_PHY_W5500,
1,
gpios.cs,
gpios.irq == GPIO_IS_NOT_CONFIGURED ? -1 : gpios.irq, // optionally
gpios.rst == GPIO_IS_NOT_CONFIGURED ? -1 : gpios.rst, // optionally
SPI2_HOST,
gpios.clk,
gpios.miso,
gpios.mosi,
12
);
if (!initialized) {
ESP_LOGE(L_NETWORK, "W5500 initialization failed, check GPIOs and wiring");
stopEthernet();
return false;