Skip to content

Commit 27d4501

Browse files
authored
Split esphome-web to use factory (#285)
1 parent 1809694 commit 27d4501

File tree

13 files changed

+167
-173
lines changed

13 files changed

+167
-173
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
uses: esphome/workflows/.github/workflows/[email protected]
3737
with:
3838
files: |
39-
esphome-web/esp32.yaml
40-
esphome-web/esp32c3.yaml
41-
esphome-web/esp32s2.yaml
42-
esphome-web/esp32s3.yaml
43-
esphome-web/esp8266.yaml
44-
esphome-web/pico-w.yaml
39+
esphome-web/esp32.factory.yaml
40+
esphome-web/esp32c3.factory.yaml
41+
esphome-web/esp32s2.factory.yaml
42+
esphome-web/esp32s3.factory.yaml
43+
esphome-web/esp8266.factory.yaml
44+
esphome-web/pico-w.factory.yaml
4545
esphome-version: 2024.11.1
4646
combined-name: esphome-web
4747
release-summary: ${{ github.event_name == 'release' && github.event.release.body || '' }}

esphome-web/esp32.factory.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
packages:
2+
esp32: !include esp32.yaml
3+
4+
esphome:
5+
name_add_mac_suffix: true
6+
project:
7+
name: esphome.web
8+
version: dev
9+
10+
# Allow provisioning Wi-Fi via serial
11+
improv_serial:
12+
13+
wifi:
14+
# Set up a wifi access point
15+
ap: {}
16+
17+
# In combination with the `ap` this allows the user
18+
# to provision wifi credentials to the device via WiFi AP.
19+
captive_portal:
20+
21+
dashboard_import:
22+
package_import_url: github://esphome/firmware/esphome-web/esp32.yaml@main
23+
import_full_config: true
24+
25+
# Sets up Bluetooth LE (Only on ESP32) to allow the user
26+
# to provision wifi credentials to the device.
27+
esp32_improv:
28+
authorizer: none

esphome-web/esp32.yaml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
substitutions:
1+
esphome:
22
name: esphome-web
33
friendly_name: ESPHome Web
4-
5-
esphome:
6-
name: "${name}"
7-
friendly_name: "${friendly_name}"
8-
min_version: 2024.6.0
4+
min_version: 2024.11.0
95
name_add_mac_suffix: true
10-
project:
11-
name: esphome.web
12-
version: dev
136

147
esp32:
158
board: esp32dev
169
framework:
17-
type: arduino
10+
type: esp-idf
1811

1912
# Enable logging
2013
logger:
@@ -26,25 +19,4 @@ api:
2619
ota:
2720
- platform: esphome
2821

29-
# Allow provisioning Wi-Fi via serial
30-
improv_serial:
31-
3222
wifi:
33-
# Set up a wifi access point
34-
ap: {}
35-
36-
# In combination with the `ap` this allows the user
37-
# to provision wifi credentials to the device via WiFi AP.
38-
captive_portal:
39-
40-
dashboard_import:
41-
package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main
42-
import_full_config: true
43-
44-
# Sets up Bluetooth LE (Only on ESP32) to allow the user
45-
# to provision wifi credentials to the device.
46-
esp32_improv:
47-
authorizer: none
48-
49-
# To have a "next url" for improv serial
50-
web_server:

esphome-web/esp32c3.factory.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
packages:
2+
esp32c3: !include esp32c3.yaml
3+
4+
esphome:
5+
name_add_mac_suffix: true
6+
project:
7+
name: esphome.web
8+
version: dev
9+
10+
# Allow provisioning Wi-Fi via serial
11+
improv_serial:
12+
13+
wifi:
14+
# Set up a wifi access point
15+
ap: {}
16+
17+
# In combination with the `ap` this allows the user
18+
# to provision wifi credentials to the device via WiFi AP.
19+
captive_portal:
20+
21+
dashboard_import:
22+
package_import_url: github://esphome/firmware/esphome-web/esp32c3.yaml@main
23+
import_full_config: true
24+
25+
# Sets up Bluetooth LE (Only on ESP32) to allow the user
26+
# to provision wifi credentials to the device.
27+
esp32_improv:
28+
authorizer: none

esphome-web/esp32c3.yaml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
substitutions:
1+
esphome:
22
name: esphome-web
33
friendly_name: ESPHome Web
4-
5-
esphome:
6-
name: "${name}"
7-
friendly_name: "${friendly_name}"
8-
min_version: 2024.6.0
4+
min_version: 2024.11.0
95
name_add_mac_suffix: true
10-
project:
11-
name: esphome.web
12-
version: dev
136

147
esp32:
158
board: esp32-c3-devkitm-1
169
framework:
17-
type: arduino
10+
type: esp-idf
1811

1912
# Enable logging
2013
logger:
@@ -26,25 +19,4 @@ api:
2619
ota:
2720
- platform: esphome
2821

29-
# Allow provisioning Wi-Fi via serial
30-
improv_serial:
31-
3222
wifi:
33-
# Set up a wifi access point
34-
ap: {}
35-
36-
# In combination with the `ap` this allows the user
37-
# to provision wifi credentials to the device via WiFi AP.
38-
captive_portal:
39-
40-
dashboard_import:
41-
package_import_url: github://esphome/firmware/esphome-web/esp32c3.yaml@main
42-
import_full_config: true
43-
44-
# Sets up Bluetooth LE (Only on ESP32) to allow the user
45-
# to provision wifi credentials to the device.
46-
esp32_improv:
47-
authorizer: none
48-
49-
# To have a "next url" for improv serial
50-
web_server:

esphome-web/esp32s2.factory.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
packages:
2+
esp32s2: !include esp32s2.yaml
3+
4+
esphome:
5+
name_add_mac_suffix: true
6+
project:
7+
name: esphome.web
8+
version: dev
9+
10+
# Allow provisioning Wi-Fi via serial
11+
improv_serial:
12+
13+
wifi:
14+
# Set up a wifi access point
15+
ap: {}
16+
17+
# In combination with the `ap` this allows the user
18+
# to provision wifi credentials to the device via WiFi AP.
19+
captive_portal:
20+
21+
dashboard_import:
22+
package_import_url: github://esphome/firmware/esphome-web/esp32s2.yaml@main
23+
import_full_config: true

esphome-web/esp32s2.yaml

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
substitutions:
1+
esphome:
22
name: esphome-web
33
friendly_name: ESPHome Web
4-
5-
esphome:
6-
name: "${name}"
7-
friendly_name: "${friendly_name}"
8-
min_version: 2024.6.0
4+
min_version: 2024.11.0
95
name_add_mac_suffix: true
10-
platformio_options:
11-
board_build.flash_mode: dio
12-
project:
13-
name: esphome.web
14-
version: dev
156

167
esp32:
178
board: esp32-s2-saola-1
189
framework:
19-
type: arduino
10+
type: esp-idf
2011

2112
# Enable logging
2213
logger:
@@ -28,20 +19,4 @@ api:
2819
ota:
2920
- platform: esphome
3021

31-
# Allow provisioning Wi-Fi via serial
32-
improv_serial:
33-
3422
wifi:
35-
# Set up a wifi access point
36-
ap: {}
37-
38-
# In combination with the `ap` this allows the user
39-
# to provision wifi credentials to the device via WiFi AP.
40-
captive_portal:
41-
42-
dashboard_import:
43-
package_import_url: github://esphome/firmware/esphome-web/esp32s2.yaml@main
44-
import_full_config: true
45-
46-
# To have a "next url" for improv serial
47-
web_server:

esphome-web/esp32s3.factory.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
packages:
2+
esp32s3: !include esp32s3.yaml
3+
4+
esphome:
5+
name_add_mac_suffix: true
6+
project:
7+
name: esphome.web
8+
version: dev
9+
10+
# Allow provisioning Wi-Fi via serial
11+
improv_serial:
12+
13+
wifi:
14+
# Set up a wifi access point
15+
ap: {}
16+
17+
# In combination with the `ap` this allows the user
18+
# to provision wifi credentials to the device via WiFi AP.
19+
captive_portal:
20+
21+
dashboard_import:
22+
package_import_url: github://esphome/firmware/esphome-web/esp32s3.yaml@main
23+
import_full_config: true
24+
25+
# Sets up Bluetooth LE (Only on ESP32) to allow the user
26+
# to provision wifi credentials to the device.
27+
esp32_improv:
28+
authorizer: none

esphome-web/esp32s3.yaml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
substitutions:
1+
esphome:
22
name: esphome-web
33
friendly_name: ESPHome Web
4-
5-
esphome:
6-
name: "${name}"
7-
friendly_name: "${friendly_name}"
8-
min_version: 2024.6.0
4+
min_version: 2024.11.0
95
name_add_mac_suffix: true
10-
platformio_options:
11-
board_build.flash_mode: dio
12-
project:
13-
name: esphome.web
14-
version: dev
156

167
esp32:
178
board: esp32-s3-devkitc-1
189
framework:
19-
type: arduino
10+
type: esp-idf
2011

2112
# Enable logging
2213
logger:
@@ -28,25 +19,4 @@ api:
2819
ota:
2920
- platform: esphome
3021

31-
# Allow provisioning Wi-Fi via serial
32-
improv_serial:
33-
3422
wifi:
35-
# Set up a wifi access point
36-
ap: {}
37-
38-
# In combination with the `ap` this allows the user
39-
# to provision wifi credentials to the device via WiFi AP.
40-
captive_portal:
41-
42-
dashboard_import:
43-
package_import_url: github://esphome/firmware/esphome-web/esp32s3.yaml@main
44-
import_full_config: true
45-
46-
# Sets up Bluetooth LE (Only on ESP32) to allow the user
47-
# to provision wifi credentials to the device.
48-
esp32_improv:
49-
authorizer: none
50-
51-
# To have a "next url" for improv serial
52-
web_server:

esphome-web/esp8266.factory.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
packages:
2+
esp8266: !include esp8266.yaml
3+
4+
esphome:
5+
name_add_mac_suffix: true
6+
project:
7+
name: esphome.web
8+
version: dev
9+
10+
# Allow provisioning Wi-Fi via serial
11+
improv_serial:
12+
13+
wifi:
14+
# Set up a wifi access point
15+
ap: {}
16+
17+
# In combination with the `ap` this allows the user
18+
# to provision wifi credentials to the device via WiFi AP.
19+
captive_portal:
20+
21+
dashboard_import:
22+
package_import_url: github://esphome/firmware/esphome-web/esp8266.yaml@main
23+
import_full_config: true

0 commit comments

Comments
 (0)