mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a33b7b17e | ||
|
|
c11ffdd002 | ||
|
|
a86adfce01 | ||
|
|
93cb173520 | ||
|
|
18d722454b | ||
|
|
7f2a1c9b10 | ||
|
|
b3f4062e9a | ||
|
|
b378eb883f | ||
|
|
18a71c4371 | ||
|
|
a25b0f46ac | ||
|
|
7afdc3d6f0 | ||
|
|
8b5366356f | ||
|
|
6ef73e9bfa | ||
|
|
37f1f57b16 | ||
|
|
28e2d08829 | ||
|
|
d6fcbca9f0 | ||
|
|
ae47f019b2 | ||
|
|
0a70b4a076 |
42
boards/dimmer_output.yaml
Normal file
42
boards/dimmer_output.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 33
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl01
|
||||
- platform: ledc
|
||||
pin: 32
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl02
|
||||
- platform: ledc
|
||||
pin: 12
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl03
|
||||
- platform: ledc
|
||||
pin: 14
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl04
|
||||
|
||||
- platform: ledc
|
||||
pin: 13
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr01
|
||||
- platform: ledc
|
||||
pin: 15
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr02
|
||||
- platform: ledc
|
||||
pin: 2
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr03
|
||||
- platform: ledc
|
||||
pin: 17
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr04
|
||||
@@ -46,8 +46,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -38,15 +38,16 @@ packages:
|
||||
'devices_v0_7/i2c.yaml',
|
||||
'devices_v0_7-v0_9/ina219.yaml',
|
||||
'devices_v0_7-v0_9/lm75b.yaml',
|
||||
'devices_v0_7-v0_9/pcf.yaml',
|
||||
'devices_v0_7-v0_9/pcf_with_mcp.yaml',
|
||||
'boards/24x16_output.yaml',
|
||||
# 'devices_v0_7-v0_9/one_wire.yaml',
|
||||
]
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -47,8 +47,9 @@ packages:
|
||||
logger:
|
||||
baud_rate: 0 #IMPORTANT FOR V0.5-V0.6 TO GET MODBUS WORKING
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -47,11 +47,12 @@ logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
local: true
|
||||
version: 3
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
||||
@@ -47,7 +47,7 @@ logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -46,6 +46,7 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
- platform: esphome
|
||||
|
||||
|
||||
@@ -46,8 +46,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -45,8 +45,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -43,7 +43,7 @@ logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -46,8 +46,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -30,7 +30,7 @@ dashboard_import:
|
||||
packages:
|
||||
internals_packages:
|
||||
url: https://github.com/boneIO-eu/esphome
|
||||
ref: v1.2.0
|
||||
ref: v1.4.0
|
||||
files: [
|
||||
'devices/buzzer.yaml',
|
||||
'devices/serial_no.yaml',
|
||||
@@ -39,15 +39,15 @@ packages:
|
||||
'devices_v0_7-v0_9/ina219.yaml',
|
||||
'devices_v0_7-v0_9/lm75b.yaml',
|
||||
'devices_v0_7-v0_9/pcf.yaml',
|
||||
'boards/32x10_output.yaml',
|
||||
'boards/8_covers_16_output.yaml',
|
||||
# 'devices_v0_7-v0_9/one_wire.yaml',
|
||||
]
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -46,8 +46,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -45,8 +45,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -46,8 +46,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -45,8 +45,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -21,12 +21,13 @@ external_components:
|
||||
packages:
|
||||
internals_packages:
|
||||
url: https://github.com/boneIO-eu/esphome
|
||||
ref: v1.4.0
|
||||
ref: v1.5.0
|
||||
files:
|
||||
[
|
||||
'devices/serial_no.yaml',
|
||||
'devices/dimmer_i2c.yaml',
|
||||
'devices/dimmer_ina219.yaml',
|
||||
'board/dimmer_output.yaml',
|
||||
]
|
||||
|
||||
ethernet:
|
||||
@@ -48,8 +49,9 @@ pcf8574:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
@@ -134,49 +136,6 @@ binary_sensor:
|
||||
input: true
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 33
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl01
|
||||
- platform: ledc
|
||||
pin: 32
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl02
|
||||
- platform: ledc
|
||||
pin: 12
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl03
|
||||
- platform: ledc
|
||||
pin: 14
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl04
|
||||
|
||||
- platform: ledc
|
||||
pin: 13
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr01
|
||||
- platform: ledc
|
||||
pin: 15
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr02
|
||||
- platform: ledc
|
||||
pin: 2
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr03
|
||||
- platform: ledc
|
||||
pin: 17
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr04
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
name: 'RGBW L'
|
||||
|
||||
@@ -21,12 +21,13 @@ external_components:
|
||||
packages:
|
||||
internals_packages:
|
||||
url: https://github.com/boneIO-eu/esphome
|
||||
ref: v1.4.0
|
||||
ref: v1.5.0
|
||||
files:
|
||||
[
|
||||
'devices/serial_no.yaml',
|
||||
'devices/dimmer_i2c.yaml',
|
||||
'devices/dimmer_ina219.yaml',
|
||||
'board/dimmer_output.yaml',
|
||||
]
|
||||
|
||||
ethernet:
|
||||
@@ -48,8 +49,9 @@ pcf8574:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
@@ -134,49 +136,6 @@ binary_sensor:
|
||||
input: true
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 33
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl01
|
||||
- platform: ledc
|
||||
pin: 32
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl02
|
||||
- platform: ledc
|
||||
pin: 12
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl03
|
||||
- platform: ledc
|
||||
pin: 14
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl04
|
||||
|
||||
- platform: ledc
|
||||
pin: 13
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr01
|
||||
- platform: ledc
|
||||
pin: 15
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr02
|
||||
- platform: ledc
|
||||
pin: 2
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr03
|
||||
- platform: ledc
|
||||
pin: 17
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr04
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
name: 'CHL_01_02'
|
||||
|
||||
@@ -21,12 +21,13 @@ external_components:
|
||||
packages:
|
||||
internals_packages:
|
||||
url: https://github.com/boneIO-eu/esphome
|
||||
ref: v1.4.0
|
||||
ref: v1.5.0
|
||||
files:
|
||||
[
|
||||
'devices/serial_no.yaml',
|
||||
'devices/dimmer_i2c.yaml',
|
||||
'devices/dimmer_ina219.yaml',
|
||||
'board/dimmer_output.yaml',
|
||||
]
|
||||
|
||||
ethernet:
|
||||
@@ -48,8 +49,9 @@ pcf8574:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
@@ -75,107 +77,304 @@ text_sensor:
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: 'IN_01'
|
||||
id: in_01
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
number: 1
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
on_multi_click:
|
||||
- timing:
|
||||
- ON for at least 0.7s
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
binary_sensor.is_on: in_01
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return id(chl_01).current_values.get_brightness() >= 0.90f;'
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: chl_01
|
||||
brightness: 5%
|
||||
transition_length: 0.2s
|
||||
else:
|
||||
- light.dim_relative:
|
||||
id: chl_01
|
||||
relative_brightness: 5%
|
||||
transition_length: 0.2s
|
||||
- delay: 200ms
|
||||
invalid_cooldown: 0.5s
|
||||
- timing: #single click
|
||||
- ON for at most 0.4s
|
||||
- OFF for at least 0.1s
|
||||
then:
|
||||
light.toggle: chl_01
|
||||
invalid_cooldown: 0.5s
|
||||
- platform: gpio
|
||||
name: 'IN_02'
|
||||
id: in_02
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
number: 2
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
on_multi_click:
|
||||
- timing:
|
||||
- ON for at least 0.7s
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
binary_sensor.is_on: in_02
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return id(chl_02).current_values.get_brightness() >= 0.90f;'
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: chl_02
|
||||
brightness: 5%
|
||||
transition_length: 0.2s
|
||||
else:
|
||||
- light.dim_relative:
|
||||
id: chl_02
|
||||
relative_brightness: 5%
|
||||
transition_length: 0.2s
|
||||
- delay: 200ms
|
||||
invalid_cooldown: 0.5s
|
||||
- timing: #single click
|
||||
- ON for at most 0.4s
|
||||
- OFF for at least 0.1s
|
||||
then:
|
||||
light.toggle: chl_02
|
||||
invalid_cooldown: 0.5s
|
||||
- platform: gpio
|
||||
name: 'IN_03'
|
||||
id: in_03
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
number: 3
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
on_multi_click:
|
||||
- timing:
|
||||
- ON for at least 0.7s
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
binary_sensor.is_on: in_03
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return id(chl_03).current_values.get_brightness() >= 0.90f;'
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: chl_03
|
||||
brightness: 5%
|
||||
transition_length: 0.2s
|
||||
else:
|
||||
- light.dim_relative:
|
||||
id: chl_03
|
||||
relative_brightness: 5%
|
||||
transition_length: 0.2s
|
||||
- delay: 200ms
|
||||
invalid_cooldown: 0.5s
|
||||
- timing: #single click
|
||||
- ON for at most 0.4s
|
||||
- OFF for at least 0.1s
|
||||
then:
|
||||
light.toggle: chl_03
|
||||
invalid_cooldown: 0.5s
|
||||
- platform: gpio
|
||||
name: 'IN_04'
|
||||
id: in_04
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
number: 4
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
on_multi_click:
|
||||
- timing:
|
||||
- ON for at least 0.7s
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
binary_sensor.is_on: in_04
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return id(chl_04).current_values.get_brightness() >= 0.90f;'
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: chl_04
|
||||
brightness: 5%
|
||||
transition_length: 0.2s
|
||||
else:
|
||||
- light.dim_relative:
|
||||
id: chl_04
|
||||
relative_brightness: 5%
|
||||
transition_length: 0.2s
|
||||
- delay: 200ms
|
||||
invalid_cooldown: 0.5s
|
||||
- timing: #single click
|
||||
- ON for at most 0.4s
|
||||
- OFF for at least 0.1s
|
||||
then:
|
||||
light.toggle: chl_04
|
||||
invalid_cooldown: 0.5s
|
||||
- platform: gpio
|
||||
name: 'IN_05'
|
||||
id: in_05
|
||||
pin:
|
||||
number: 36
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
on_multi_click:
|
||||
- timing:
|
||||
- ON for at least 0.7s
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
binary_sensor.is_on: in_05
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return id(chl_05).current_values.get_brightness() >= 0.90f;'
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: chl_05
|
||||
brightness: 5%
|
||||
transition_length: 0.2s
|
||||
else:
|
||||
- light.dim_relative:
|
||||
id: chl_05
|
||||
relative_brightness: 5%
|
||||
transition_length: 0.2s
|
||||
- delay: 200ms
|
||||
invalid_cooldown: 0.5s
|
||||
- timing: #single click
|
||||
- ON for at most 0.4s
|
||||
- OFF for at least 0.1s
|
||||
then:
|
||||
light.toggle: chl_05
|
||||
invalid_cooldown: 0.5s
|
||||
- platform: gpio
|
||||
name: 'IN_06'
|
||||
id: in_06
|
||||
pin:
|
||||
number: 39
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
on_multi_click:
|
||||
- timing:
|
||||
- ON for at least 0.7s
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
binary_sensor.is_on: in_06
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return id(chl_06).current_values.get_brightness() >= 0.90f;'
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: chl_06
|
||||
brightness: 5%
|
||||
transition_length: 0.2s
|
||||
else:
|
||||
- light.dim_relative:
|
||||
id: chl_06
|
||||
relative_brightness: 5%
|
||||
transition_length: 0.2s
|
||||
- delay: 200ms
|
||||
invalid_cooldown: 0.5s
|
||||
- timing: #single click
|
||||
- ON for at most 0.4s
|
||||
- OFF for at least 0.1s
|
||||
then:
|
||||
light.toggle: chl_06
|
||||
invalid_cooldown: 0.5s
|
||||
- platform: gpio
|
||||
name: 'IN_07'
|
||||
id: in_07
|
||||
pin:
|
||||
number: 34
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
on_multi_click:
|
||||
- timing:
|
||||
- ON for at least 0.7s
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
binary_sensor.is_on: in_07
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return id(chl_07).current_values.get_brightness() >= 0.90f;'
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: chl_07
|
||||
brightness: 5%
|
||||
transition_length: 0.2s
|
||||
else:
|
||||
- light.dim_relative:
|
||||
id: chl_07
|
||||
relative_brightness: 5%
|
||||
transition_length: 0.2s
|
||||
- delay: 200ms
|
||||
invalid_cooldown: 0.5s
|
||||
- timing: #single click
|
||||
- ON for at most 0.4s
|
||||
- OFF for at least 0.1s
|
||||
then:
|
||||
light.toggle: chl_07
|
||||
invalid_cooldown: 0.5s
|
||||
- platform: gpio
|
||||
name: 'IN_08'
|
||||
id: in_08
|
||||
pin:
|
||||
number: 35
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 33
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl01
|
||||
- platform: ledc
|
||||
pin: 32
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl02
|
||||
- platform: ledc
|
||||
pin: 12
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl03
|
||||
- platform: ledc
|
||||
pin: 14
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chl04
|
||||
|
||||
- platform: ledc
|
||||
pin: 13
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr01
|
||||
- platform: ledc
|
||||
pin: 15
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr02
|
||||
- platform: ledc
|
||||
pin: 2
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr03
|
||||
- platform: ledc
|
||||
pin: 17
|
||||
frequency: 1000Hz
|
||||
inverted: false
|
||||
id: chr04
|
||||
on_multi_click:
|
||||
- timing:
|
||||
- ON for at least 0.7s
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
binary_sensor.is_on: in_08
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return id(chl_08).current_values.get_brightness() >= 0.90f;'
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: chl_08
|
||||
brightness: 5%
|
||||
transition_length: 0.2s
|
||||
else:
|
||||
- light.dim_relative:
|
||||
id: chl_08
|
||||
relative_brightness: 5%
|
||||
transition_length: 0.2s
|
||||
- delay: 200ms
|
||||
invalid_cooldown: 0.5s
|
||||
- timing: #single click
|
||||
- ON for at most 0.4s
|
||||
- OFF for at least 0.1s
|
||||
then:
|
||||
light.toggle: chl_08
|
||||
invalid_cooldown: 0.5s
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
|
||||
@@ -47,7 +47,7 @@ logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -45,8 +45,9 @@ packages:
|
||||
|
||||
logger:
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
ota:
|
||||
platform: esphome
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
@@ -21,7 +21,7 @@ firmware_destination = "../website/public/esp/firmware"
|
||||
def json_pattern(firmware_name):
|
||||
return {
|
||||
"name": "ESPHome",
|
||||
"version": "2024.5.0",
|
||||
"version": "2024.10.1",
|
||||
"home_assistant_domain": "esphome",
|
||||
"funding_url": "https://esphome.io/guides/supporters.html",
|
||||
"new_install_prompt_erase": False,
|
||||
@@ -56,11 +56,15 @@ for file in glob.glob("*.yaml"):
|
||||
print("No file found.")
|
||||
break
|
||||
firmware_path = f"{cwd}/.esphome/build/{filename}/.pioenvs/{filename}/firmware.factory.bin"
|
||||
print("CWD", cwd)
|
||||
subprocess.run(
|
||||
f'docker run --rm -p 6052:6052 -v "{cwd}":/config -it ghcr.io/esphome/esphome compile {file}',
|
||||
cmd = f'docker run --rm -p 6052:6052 -v "{cwd}":/config -it ghcr.io/esphome/esphome compile {file}'
|
||||
print(cmd)
|
||||
result = subprocess.run(
|
||||
cmd,
|
||||
shell=True,
|
||||
)
|
||||
if result.returncode != 0:
|
||||
print("Process failed, breaking.")
|
||||
break
|
||||
shutil.copyfile(firmware_path, f"{firmware_destination}/{filename}.bin")
|
||||
|
||||
with open(
|
||||
|
||||
Reference in New Issue
Block a user