Skip to content

Commit

Permalink
add new generic devices
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannchaudet committed Dec 16, 2023
1 parent 33504af commit f7da3ac
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ wifi_ap_password: "12345678"
generic_plug_01_encryption_key: MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAo=
generic_plug_01_ota_password:

generic_plug_02_encryption_key: MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAo=
generic_plug_02_ota_password:

generic_plug_03_encryption_key: MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAo=
generic_plug_03_ota_password:

_3d_printer_encryption_key: MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAo=
_3d_printer_ota_password:

Expand Down
18 changes: 18 additions & 0 deletions device.generic-plug-02.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
substitutions:
device_id: generic_plug_02
device_name: generic-plug-02
friendly_name: Generic Plug 02

<<: !include {
file: "common/networking.yaml",
vars: {
device_id: "${device_id}",
wifi_ssid: !secret wifi_ssid,
wifi_password: !secret wifi_password,
wifi_ap_password: !secret wifi_ap_password,
encryption_key: !secret generic_plug_02_encryption_key,
ota_password: !secret generic_plug_02_ota_password,
}
}

<<: !include templates/teckin-sp10.yaml
18 changes: 18 additions & 0 deletions device.generic-plug-03.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
substitutions:
device_id: generic_plug_03
device_name: generic-plug-03
friendly_name: Generic Plug 03

<<: !include {
file: "common/networking.yaml",
vars: {
device_id: "${device_id}",
wifi_ssid: !secret wifi_ssid,
wifi_password: !secret wifi_password,
wifi_ap_password: !secret wifi_ap_password,
encryption_key: !secret generic_plug_03_encryption_key,
ota_password: !secret generic_plug_03_ota_password,
}
}

<<: !include templates/teckin-sp10.yaml

0 comments on commit f7da3ac

Please sign in to comment.