mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Fix includes
This commit is contained in:
parent
bba03c156d
commit
111051b70f
@ -3,6 +3,10 @@ substitutions:
|
|||||||
device_name:
|
device_name:
|
||||||
platform:
|
platform:
|
||||||
board:
|
board:
|
||||||
|
ip_address: !secret _ip
|
||||||
|
ota_pwd: !secret _ota_pwd
|
||||||
|
api_pwd: !secret _api_pwd
|
||||||
|
ap_wifi_pwd: !secret _ap_wifi_pwd
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
<<: !include common/esphome.yaml
|
<<: !include common/esphome.yaml
|
||||||
@ -11,13 +15,15 @@ esphome:
|
|||||||
<<: !include common/logger.yaml
|
<<: !include common/logger.yaml
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
<<: !include common/binary_sensors.yaml
|
- !include common/binary_sensor/status.yaml
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
<<: !include common/sensors.yaml
|
- !include common/sensor/uptime.yaml
|
||||||
|
- !include common/sensor/wifi.yaml
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
<<: !include common/switches.yaml
|
- !include common/switch/restart.yaml
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
<<: !include common/text_sensors.yaml
|
- !include common/text_sensor/version.yaml
|
||||||
|
- !include common/text_sensor/wifi.yaml
|
@ -3,6 +3,10 @@ substitutions:
|
|||||||
device_name: Coffee Maker
|
device_name: Coffee Maker
|
||||||
platform: ESP8266
|
platform: ESP8266
|
||||||
board: nodemcuv2
|
board: nodemcuv2
|
||||||
|
ip_address: !secret coffee_maker_ip
|
||||||
|
ota_pwd: !secret coffee_maker_ota_pwd
|
||||||
|
api_pwd: !secret coffee_maker_api_pwd
|
||||||
|
ap_wifi_pwd: !secret coffee_maker_ap_wifi_pwd
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
<<: !include common/esphome.yaml
|
<<: !include common/esphome.yaml
|
||||||
@ -11,7 +15,7 @@ esphome:
|
|||||||
<<: !include common/logger.yaml
|
<<: !include common/logger.yaml
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
<<: !include common/binary_sensors.yaml
|
- !include common/binary_sensor/status.yaml
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: power_light
|
id: power_light
|
||||||
pin:
|
pin:
|
||||||
@ -80,13 +84,15 @@ interval:
|
|||||||
}
|
}
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
<<: !include common/sensors.yaml
|
- !include common/sensor/uptime.yaml
|
||||||
|
- !include common/sensor/wifi.yaml
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
<<: !include common/switches.yaml
|
- !include common/switch/restart.yaml
|
||||||
- platform: template
|
- platform: template
|
||||||
id: power_switch
|
id: power_switch
|
||||||
name: "Coffee Maker"
|
name: "Coffee Maker"
|
||||||
|
icon: mdi:coffee
|
||||||
lambda: 'return id(power_light).state;'
|
lambda: 'return id(power_light).state;'
|
||||||
turn_on_action:
|
turn_on_action:
|
||||||
then:
|
then:
|
||||||
@ -113,6 +119,7 @@ switch:
|
|||||||
- platform: template
|
- platform: template
|
||||||
id: bold_switch
|
id: bold_switch
|
||||||
name: "Coffee Maker Bold Setting"
|
name: "Coffee Maker Bold Setting"
|
||||||
|
icon: mdi:coffee
|
||||||
lambda: 'return id(bold_light).state;'
|
lambda: 'return id(bold_light).state;'
|
||||||
turn_on_action:
|
turn_on_action:
|
||||||
then:
|
then:
|
||||||
@ -138,4 +145,5 @@ switch:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
<<: !include common/text_sensors.yaml
|
- !include common/text_sensor/version.yaml
|
||||||
|
- !include common/text_sensor/wifi.yaml
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
api:
|
api:
|
||||||
password: !secret ${device_id}_api_pwd:
|
password: ${api_pwd}
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
- !include common/binary_sensor/status.yaml
|
|
@ -1,2 +1,2 @@
|
|||||||
ota:
|
ota:
|
||||||
password: !secret ${device_id}_ota_pwd:
|
password: ${ota_pwd}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
- platform: uptime
|
platform: uptime
|
||||||
name: ${device_name} Uptime
|
name: ${device_name} Uptime
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
- platform: wifi_signal
|
platform: wifi_signal
|
||||||
name: ${device_name} WiFi Signal
|
name: ${device_name} WiFi Signal
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
- !include common/sensor/uptime.yaml
|
|
||||||
- !include common/sensor/wifi.yaml
|
|
@ -1,3 +1,3 @@
|
|||||||
- platform: restart
|
platform: restart
|
||||||
id: restart
|
id: reboot
|
||||||
name: Restart ${device_name}
|
name: Restart ${device_name}
|
@ -1 +0,0 @@
|
|||||||
- !include common/switch/restart.yaml
|
|
@ -1,2 +1,2 @@
|
|||||||
- platform: version
|
platform: version
|
||||||
name: ${device_name} Version
|
name: ${device_name} Version
|
@ -1,3 +1,4 @@
|
|||||||
platform: wifi_info
|
platform: wifi_info
|
||||||
ip_address:
|
ip_address:
|
||||||
name: ${device_name} IP Address
|
name: ${device_name} IP Address
|
||||||
|
icon: mdi:ip-network
|
@ -1,2 +0,0 @@
|
|||||||
- !include common/text_sensor/version.yaml
|
|
||||||
- !include common/text_sensor/wifi.yaml
|
|
@ -2,11 +2,11 @@ wifi:
|
|||||||
ssid: !secret wifi_ssid
|
ssid: !secret wifi_ssid
|
||||||
password: !secret wifi_password
|
password: !secret wifi_password
|
||||||
manual_ip:
|
manual_ip:
|
||||||
static_ip: !secret ${device_id}_ip
|
static_ip: ${ip_address}
|
||||||
subnet: !secret ip_subnet
|
subnet: !secret ip_subnet
|
||||||
gateway: !secret ip_gateway
|
gateway: !secret ip_gateway
|
||||||
ap:
|
ap:
|
||||||
ssid: ${device_id}
|
ssid: ${device_id}
|
||||||
password: !secret ${device_id}_cp_pwd
|
password: ${ap_wifi_pwd}
|
||||||
|
|
||||||
captive_portal:
|
captive_portal:
|
@ -3,6 +3,10 @@ substitutions:
|
|||||||
device_name: Master Bed
|
device_name: Master Bed
|
||||||
platform: ESP8266
|
platform: ESP8266
|
||||||
board: nodemcuv2
|
board: nodemcuv2
|
||||||
|
ip_address: !secret master_bed_ip
|
||||||
|
ota_pwd: !secret master_bed_ota_pwd
|
||||||
|
api_pwd: !secret master_bed_api_pwd
|
||||||
|
ap_wifi_pwd: !secret master_bed_ap_wifi_pwd
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
<<: !include common/esphome.yaml
|
<<: !include common/esphome.yaml
|
||||||
@ -13,7 +17,7 @@ esphome:
|
|||||||
<<: !include common/logger.yaml
|
<<: !include common/logger.yaml
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
<<: !include common/binary_sensors.yaml
|
- !include common/binary_sensor/status.yaml
|
||||||
- platform: custom
|
- platform: custom
|
||||||
lambda: |-
|
lambda: |-
|
||||||
auto bedSensor = new BedSensor();
|
auto bedSensor = new BedSensor();
|
||||||
@ -31,7 +35,8 @@ binary_sensor:
|
|||||||
device_class: occupancy
|
device_class: occupancy
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
<<: !include common/sensors.yaml
|
- !include common/sensor/uptime.yaml
|
||||||
|
- !include common/sensor/wifi.yaml
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Master Bed Count"
|
name: "Master Bed Count"
|
||||||
id: master_bed_count
|
id: master_bed_count
|
||||||
@ -41,7 +46,8 @@ sensor:
|
|||||||
return id(melissa_in_bed).state + id(chris_in_bed).state + id(someone_in_bed).state;
|
return id(melissa_in_bed).state + id(chris_in_bed).state + id(someone_in_bed).state;
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
<<: !include common/switches.yaml
|
- !include common/switch/restart.yaml
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
<<: !include common/text_sensors.yaml
|
- !include common/text_sensor/version.yaml
|
||||||
|
- !include common/text_sensor/wifi.yaml
|
Loading…
Reference in New Issue
Block a user