add serial_prefix to config

This commit is contained in:
pszafer
2024-05-27 20:32:25 +02:00
parent 8412fb6fe5
commit 206a1912f2
16 changed files with 47 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-24-sw-06
friendly_name: 'BoneIO ESP 24x16 Switches'
serial_prefix: 'esp24' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_5-v0_6/display.yaml',
'devices_v0_5-v0_6/time.yaml',
'devices_v0_5-v0_6/i2c.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-24-sw-07
friendly_name: 'BoneIO ESP 24x16 Switches'
serial_prefix: 'esp24' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_7/display.yaml',
'devices_v0_7/i2c.yaml',
'devices_v0_7/ina219.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-32-l-06
friendly_name: 'BoneIO ESP 32x10 Lights'
serial_prefix: 'esp32' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_5-v0_6/display.yaml',
'devices_v0_5-v0_6/time.yaml',
'devices_v0_5-v0_6/i2c.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-32-l-07
friendly_name: 'BoneIO ESP 32x10 Lights'
serial_prefix: 'esp32' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_7/display.yaml',
'devices_v0_7/i2c.yaml',
'devices_v0_7/ina219.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-32-sw-06
friendly_name: 'BoneIO ESP 32x10 Switches'
serial_prefix: 'esp32' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_5-v0_6/display.yaml',
'devices_v0_5-v0_6/time.yaml',
'devices_v0_5-v0_6/i2c.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-32-sw-07
friendly_name: 'BoneIO ESP 32x10 Switches'
serial_prefix: 'esp32' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_7/display.yaml',
'devices_v0_7/i2c.yaml',
'devices_v0_7/ina219.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-cm-l-06
friendly_name: 'BoneIO ESP Cover Mix Lights'
serial_prefix: 'espcm' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_5-v0_6/display.yaml',
'devices_v0_5-v0_6/time.yaml',
'devices_v0_5-v0_6/i2c.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-cm-l-07
friendly_name: 'BoneIO ESP Cover Mix Lights'
serial_prefix: 'espcm' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_7/display.yaml',
'devices_v0_7/i2c.yaml',
'devices_v0_7/ina219.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-cm-sw-06
friendly_name: 'BoneIO ESP Cover Mix Switches'
serial_prefix: 'espcm' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_5-v0_6/display.yaml',
'devices_v0_5-v0_6/time.yaml',
'devices_v0_5-v0_6/i2c.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-cm-sw-07
friendly_name: 'BoneIO ESP Cover Mix Switches'
serial_prefix: 'espcm' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_7/display.yaml',
'devices_v0_7/i2c.yaml',
'devices_v0_7/ina219.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-c-06
friendly_name: 'BoneIO ESP Cover'
serial_prefix: 'espc' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_5-v0_6/display.yaml',
'devices_v0_5-v0_6/time.yaml',
'devices_v0_5-v0_6/i2c.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-c-07
friendly_name: 'BoneIO ESP Cover'
serial_prefix: 'espc' #Don't change it.
esphome:
name: '${name}'
@@ -29,9 +30,10 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',
'devices_v0_7/display.yaml',
'devices_v0_7/i2c.yaml',
'devices_v0_7/ina219.yaml',

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-dr-rgbw-03
friendly_name: 'BoneIO Dimmer LED'
serial_prefix: 'dim' #Don't change it.
esphome:
name: '${name}'
@@ -20,10 +21,10 @@ external_components:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files:
[
'devices/dimmer_serial_no.yaml',
'devices/serial_no.yaml',
'devices/dimmer_i2c.yaml',
'devices/dimmer_ina219.yaml',
]

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-dr-4cct-03
friendly_name: 'BoneIO Dimmer LED'
serial_prefix: 'dim' #Don't change it.
esphome:
name: '${name}'
@@ -20,10 +21,10 @@ external_components:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files:
[
'devices/dimmer_serial_no.yaml',
'devices/serial_no.yaml',
'devices/dimmer_i2c.yaml',
'devices/dimmer_ina219.yaml',
]

View File

@@ -1,6 +1,7 @@
substitutions:
name: boneio-dr-8ch-03
friendly_name: 'BoneIO Dimmer LED'
serial_prefix: 'dim' #Don't change it.
esphome:
name: '${name}'
@@ -20,10 +21,10 @@ external_components:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.15
ref: v1.0.16
files:
[
'devices/dimmer_serial_no.yaml',
'devices/serial_no.yaml',
'devices/dimmer_i2c.yaml',
'devices/dimmer_ina219.yaml',
]

View File

@@ -3,7 +3,7 @@ text_sensor:
name: 'Serial No.'
lambda: |-
std::string mac = get_mac_address();
return "dim" + mac.erase(0, mac.length()/2);
return to_string("${serial_prefix}") + mac.erase(0, mac.length()/2);
icon: mdi:expansion-card-variant
entity_category: diagnostic
update_interval: 10min
update_interval: 60min