mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Finish removing underscores from names (#36)
Move remaining devices to new wifi Compile all devices script does a backup first
This commit is contained in:
@ -10,9 +10,6 @@ substitutions:
|
|||||||
ip_subnet: !secret new-ip-subnet
|
ip_subnet: !secret new-ip-subnet
|
||||||
ip_gateway: !secret new-ip-gateway
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
wifi:
|
|
||||||
use_address: 192.168.128.22
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
||||||
|
|
||||||
|
@ -5,6 +5,13 @@ substitutions:
|
|||||||
ota_pwd: !secret family-room-tv-ota-pwd
|
ota_pwd: !secret family-room-tv-ota-pwd
|
||||||
api_pwd: !secret family-room-tv-api-pwd
|
api_pwd: !secret family-room-tv-api-pwd
|
||||||
ap_wifi_pwd: !secret family-room-tv-ap-pwd
|
ap_wifi_pwd: !secret family-room-tv-ap-pwd
|
||||||
|
wifi_ssid: !secret new-wifi-ssid
|
||||||
|
wifi_password: !secret new-wifi-password
|
||||||
|
ip_subnet: !secret new-ip-subnet
|
||||||
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
use_address: 192.168.128.46
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
feit_dimmer: !include ../packages/topgreener_smart_plug.yaml
|
feit_dimmer: !include ../packages/topgreener_smart_plug.yaml
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
device_id: master_bath_fan
|
device_id: master-bath-fan
|
||||||
device_name: Master Bathroom Fan
|
device_name: Master Bathroom Fan
|
||||||
ip_address: !secret master-bath-fan-ip
|
ip_address: !secret master-bath-fan-ip
|
||||||
ota_pwd: !secret master-bath-fan-ota-pwd
|
ota_pwd: !secret master-bath-fan-ota-pwd
|
||||||
api_pwd: !secret master-bath-fan-api-pwd
|
api_pwd: !secret master-bath-fan-api-pwd
|
||||||
ap_wifi_pwd: !secret master-bath-fan-ap-pwd
|
ap_wifi_pwd: !secret master-bath-fan-ap-pwd
|
||||||
fan_wattage: "26.6"
|
fan_wattage: "26.6"
|
||||||
|
wifi_ssid: !secret new-wifi-ssid
|
||||||
|
wifi_password: !secret new-wifi-password
|
||||||
|
ip_subnet: !secret new-ip-subnet
|
||||||
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
device_base: !include ../packages/feit_dimmer_as_fan.yaml
|
device_base: !include ../packages/feit_dimmer_as_fan.yaml
|
@ -1,10 +1,14 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
device_id: master_bath_lights
|
device_id: master-bath-lights
|
||||||
device_name: Master Bathroom Lights
|
device_name: Master Bathroom Lights
|
||||||
ip_address: !secret master-bath-lights-ip
|
ip_address: !secret master-bath-lights-ip
|
||||||
ota_pwd: !secret master-bath-lights-ota-pwd
|
ota_pwd: !secret master-bath-lights-ota-pwd
|
||||||
api_pwd: !secret master-bath-lights-api-pwd
|
api_pwd: !secret master-bath-lights-api-pwd
|
||||||
ap_wifi_pwd: !secret master-bath-lights-ap-pwd
|
ap_wifi_pwd: !secret master-bath-lights-ap-pwd
|
||||||
|
wifi_ssid: !secret new-wifi-ssid
|
||||||
|
wifi_password: !secret new-wifi-password
|
||||||
|
ip_subnet: !secret new-ip-subnet
|
||||||
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
@ -1,10 +1,14 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
device_id: master_bath_lights_2
|
device_id: master-bath-lights-2
|
||||||
device_name: Master Bathroom Lights 2
|
device_name: Master Bathroom Lights 2
|
||||||
ip_address: !secret master-bath-lights-2-ip
|
ip_address: !secret master-bath-lights-2-ip
|
||||||
ota_pwd: !secret master-bath-lights-2-ota-pwd
|
ota_pwd: !secret master-bath-lights-2-ota-pwd
|
||||||
api_pwd: !secret master-bath-lights-2-api-pwd
|
api_pwd: !secret master-bath-lights-2-api-pwd
|
||||||
ap_wifi_pwd: !secret master-bath-lights-2-ap-pwd
|
ap_wifi_pwd: !secret master-bath-lights-2-ap-pwd
|
||||||
|
wifi_ssid: !secret new-wifi-ssid
|
||||||
|
wifi_password: !secret new-wifi-password
|
||||||
|
ip_subnet: !secret new-ip-subnet
|
||||||
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
feit_dimmer: !include ../packages/feit_dimmer_without_power.yaml
|
feit_dimmer: !include ../packages/feit_dimmer_without_power.yaml
|
@ -1,11 +1,15 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
device_id: master_bed
|
device_id: master-bed
|
||||||
device_name: Master Bed
|
device_name: Master Bed
|
||||||
board: nodemcuv2
|
board: nodemcuv2
|
||||||
ip_address: !secret master-bed-ip
|
ip_address: !secret master-bed-ip
|
||||||
ota_pwd: !secret master-bed-ota-pwd
|
ota_pwd: !secret master-bed-ota-pwd
|
||||||
api_pwd: !secret master-bed-api-pwd
|
api_pwd: !secret master-bed-api-pwd
|
||||||
ap_wifi_pwd: !secret master-bed-ap-pwd
|
ap_wifi_pwd: !secret master-bed-ap-pwd
|
||||||
|
wifi_ssid: !secret new-wifi-ssid
|
||||||
|
wifi_password: !secret new-wifi-password
|
||||||
|
ip_subnet: !secret new-ip-subnet
|
||||||
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
device_base: !include ../packages/device_base.yaml
|
device_base: !include ../packages/device_base.yaml
|
@ -1,10 +1,14 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
device_id: office_light
|
device_id: office-light
|
||||||
device_name: Office Light
|
device_name: Office Light
|
||||||
ip_address: !secret office-light-ip
|
ip_address: !secret office-light-ip
|
||||||
ota_pwd: !secret office-light-ota-pwd
|
ota_pwd: !secret office-light-ota-pwd
|
||||||
api_pwd: !secret office-light-api-pwd
|
api_pwd: !secret office-light-api-pwd
|
||||||
ap_wifi_pwd: !secret office-light-ap-pwd
|
ap_wifi_pwd: !secret office-light-ap-pwd
|
||||||
|
wifi_ssid: !secret new-wifi-ssid
|
||||||
|
wifi_password: !secret new-wifi-password
|
||||||
|
ip_subnet: !secret new-ip-subnet
|
||||||
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
@ -6,6 +6,10 @@ substitutions:
|
|||||||
ota_pwd: !secret patio-lights-ota-pwd
|
ota_pwd: !secret patio-lights-ota-pwd
|
||||||
api_pwd: !secret patio-lights-api-pwd
|
api_pwd: !secret patio-lights-api-pwd
|
||||||
ap_wifi_pwd: !secret patio-lights-ap-pwd
|
ap_wifi_pwd: !secret patio-lights-ap-pwd
|
||||||
|
wifi_ssid: !secret new-wifi-ssid
|
||||||
|
wifi_password: !secret new-wifi-password
|
||||||
|
ip_subnet: !secret new-ip-subnet
|
||||||
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
device_base: !include ../packages/device_base.yaml
|
device_base: !include ../packages/device_base.yaml
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
device_id: pool_pumps
|
device_id: pool-pumps
|
||||||
device_name: Pool Pumps
|
device_name: Pool Pumps
|
||||||
board: modwifi
|
board: modwifi
|
||||||
ip_address: !secret pool-pumps-ip
|
ip_address: !secret pool-pumps-ip
|
||||||
ota_pwd: !secret pool-pumps-ota-pwd
|
ota_pwd: !secret pool-pumps-ota-pwd
|
||||||
api_pwd: !secret pool-pumps-api-pwd
|
api_pwd: !secret pool-pumps-api-pwd
|
||||||
ap_wifi_pwd: !secret pool-pumps-ap-pwd
|
ap_wifi_pwd: !secret pool-pumps-ap-pwd
|
||||||
|
wifi_ssid: !secret new-wifi-ssid
|
||||||
|
wifi_password: !secret new-wifi-password
|
||||||
|
ip_subnet: !secret new-ip-subnet
|
||||||
|
ip_gateway: !secret new-ip-gateway
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
device_base: !include ../packages/device_base.yaml
|
device_base: !include ../packages/device_base.yaml
|
@ -1,3 +1,17 @@
|
|||||||
|
Write-Output "`nBacking up build folder"
|
||||||
|
if (Test-Path $PSScriptRoot\..\build\_backup)
|
||||||
|
{
|
||||||
|
Remove-Item -Path $PSScriptRoot\..\build\_backup -Recurse -Force
|
||||||
|
}
|
||||||
|
if (Test-Path $PSScriptRoot\..\_backup)
|
||||||
|
{
|
||||||
|
Remove-Item -Path $PSScriptRoot\..\_backup -Recurse -Force
|
||||||
|
}
|
||||||
|
New-Item $PSScriptRoot\..\_backup -ItemType Directory | Out-Null
|
||||||
|
Move-Item -Path $PSScriptRoot\..\build\* -Destination $PSScriptRoot\..\_backup -Force
|
||||||
|
Move-Item -Path $PSScriptRoot\..\_backup -Destination $PSScriptRoot\..\build -Force
|
||||||
|
|
||||||
|
Write-Output "`nCompiling all devices"
|
||||||
$files = Get-ChildItem $PSScriptRoot\..\devices\*.yaml -Exclude "secrets.yaml"
|
$files = Get-ChildItem $PSScriptRoot\..\devices\*.yaml -Exclude "secrets.yaml"
|
||||||
$failures = New-Object Collections.Generic.List[String]
|
$failures = New-Object Collections.Generic.List[String]
|
||||||
foreach ($file in $files) {
|
foreach ($file in $files) {
|
||||||
|
Reference in New Issue
Block a user