mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Updates to support ESPHome 2022.8.0 (#41)
This commit is contained in:
parent
dc50d93909
commit
1af1341879
@ -1,6 +1,5 @@
|
||||
#include "tuya_dimmer_as_fan.h"
|
||||
#include "esphome/core/log.h"
|
||||
#include "esphome/components/fan/fan_helpers.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace tuya {
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret basement-bathroom-light-fan-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
@ -76,7 +76,6 @@ sensor:
|
||||
name: Basement Bathroom Light
|
||||
power_id: light_power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret basement-bathroom-sensor-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret basement-bathroom-shower-light-heater-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
@ -81,12 +81,10 @@ sensor:
|
||||
name: Basement Shower Light
|
||||
power_id: light_power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
- platform: total_daily_energy
|
||||
name: Basement Bathroom Heater
|
||||
power_id: heat_power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret coffee-maker-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret fire-pit-fountain-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
|
@ -2,15 +2,14 @@ substitutions:
|
||||
device_id: garage-fridge
|
||||
device_name: Garage Fridge
|
||||
board: m5stack-atom
|
||||
framework_type: esp-idf
|
||||
ip_address: !secret garage-fridge-ip
|
||||
ota_pwd: !secret garage-fridge-ota-pwd
|
||||
api_pwd: !secret garage-fridge-api-pwd
|
||||
ap_wifi_pwd: !secret garage-fridge-ap-pwd
|
||||
log_baud_rate: '0'
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/esp32_device_base.yaml
|
||||
logger: !include ../packages/logger/logger_no_serial.yaml
|
||||
device_base: !include ../packages/device_base_esp32.yaml
|
||||
|
||||
wifi:
|
||||
power_save_mode: light
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret master-bath-hum-temp-sensor-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret master-bed-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
esphome:
|
||||
includes:
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret patio-lights-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
@ -43,7 +43,6 @@ sensor:
|
||||
name: ${device_name}
|
||||
power_id: power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret pool-and-patio-lights-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
@ -79,7 +79,6 @@ sensor:
|
||||
icon: mdi:flash
|
||||
power_id: pool_light_power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
|
@ -8,7 +8,7 @@ substitutions:
|
||||
ap_wifi_pwd: !secret pool-pumps-ap-pwd
|
||||
|
||||
packages:
|
||||
device_base: !include ../packages/device_base.yaml
|
||||
device_base: !include ../packages/device_base_esp8266.yaml
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
@ -99,13 +99,15 @@ sensor:
|
||||
icon: mdi:flash
|
||||
power_id: pool_pump_power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
filters:
|
||||
- throttle: 1min
|
||||
- platform: total_daily_energy
|
||||
name: "Pool Cleaner Total Daily Energy"
|
||||
icon: mdi:flash
|
||||
power_id: pool_cleaner_power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
filters:
|
||||
- throttle: 1min
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
|
@ -1,10 +1,11 @@
|
||||
substitutions:
|
||||
log_level: none
|
||||
log_baud_rate: '115200'
|
||||
wifi_ssid: !secret wifi-ssid
|
||||
wifi_password: !secret wifi-password
|
||||
ip_subnet: !secret ip-subnet
|
||||
ip_gateway: !secret ip-gateway
|
||||
platform: esp8266
|
||||
flash_write_interval: 10min
|
||||
|
||||
esphome:
|
||||
name: ${device_id}
|
||||
@ -13,6 +14,9 @@ esphome:
|
||||
${platform}:
|
||||
board: ${board}
|
||||
|
||||
preferences:
|
||||
flash_write_interval: ${flash_write_interval}
|
||||
|
||||
packages:
|
||||
wifi: !include wifi/wifi.yaml
|
||||
api: !include api/api.yaml
|
||||
|
@ -1,6 +1,6 @@
|
||||
substitutions:
|
||||
platform: esp32
|
||||
framework_type: arduino
|
||||
framework_type: esp-idf
|
||||
|
||||
esp32:
|
||||
framework:
|
8
packages/device_base_esp8266.yaml
Normal file
8
packages/device_base_esp8266.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
substitutions:
|
||||
platform: esp8266
|
||||
|
||||
esp8266:
|
||||
restore_from_flash: true
|
||||
|
||||
packages:
|
||||
base: !include device_base.yaml
|
@ -10,8 +10,7 @@ external_components:
|
||||
components: [ espsense ]
|
||||
|
||||
packages:
|
||||
base: !include device_base.yaml
|
||||
logger: !include logger/logger_no_serial.yaml
|
||||
base: !include device_base_esp8266.yaml
|
||||
uart: !include uart/tuya.yaml
|
||||
|
||||
espsense:
|
||||
@ -26,7 +25,6 @@ sensor:
|
||||
icon: mdi:flash
|
||||
power_id: power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
@ -1,5 +1,6 @@
|
||||
substitutions:
|
||||
board: esp01_1m
|
||||
log_baud_rate: '0'
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
@ -10,8 +11,7 @@ external_components:
|
||||
components: [ espsense ]
|
||||
|
||||
packages:
|
||||
base: !include device_base.yaml
|
||||
logger: !include logger/logger_no_serial.yaml
|
||||
base: !include device_base_esp8266.yaml
|
||||
uart: !include uart/tuya.yaml
|
||||
|
||||
espsense:
|
||||
@ -37,7 +37,6 @@ sensor:
|
||||
name: ${device_name}
|
||||
power_id: power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
@ -8,8 +8,7 @@ external_components:
|
||||
components: [ tuya_light_plus ]
|
||||
|
||||
packages:
|
||||
base: !include device_base.yaml
|
||||
logger: !include logger/logger_no_serial.yaml
|
||||
base: !include device_base_esp8266.yaml
|
||||
uart: !include uart/tuya.yaml
|
||||
|
||||
tuya:
|
||||
|
@ -1,2 +1,3 @@
|
||||
logger:
|
||||
level: ${log_level}
|
||||
baud_rate: ${log_baud_rate}
|
@ -1,3 +0,0 @@
|
||||
logger:
|
||||
level: ${log_level}
|
||||
baud_rate: 0
|
@ -11,7 +11,7 @@ external_components:
|
||||
components: [ espsense ]
|
||||
|
||||
packages:
|
||||
base: !include device_base.yaml
|
||||
base: !include device_base_esp8266.yaml
|
||||
logger: !include logger/logger.yaml
|
||||
|
||||
binary_sensor:
|
||||
@ -60,7 +60,6 @@ sensor:
|
||||
name: ${device_name}
|
||||
power_id: light_power
|
||||
method: left
|
||||
min_save_interval: 10min
|
||||
|
||||
status_led:
|
||||
pin: GPIO0
|
||||
|
@ -2,14 +2,14 @@
|
||||
substitutions:
|
||||
board: esp01_1m
|
||||
restore_mode: ALWAYS_ON
|
||||
log_baud_rate: '0'
|
||||
|
||||
external_components:
|
||||
- source: github://cbpowell/ESPSense
|
||||
components: [ espsense ]
|
||||
|
||||
packages:
|
||||
base: !include device_base.yaml
|
||||
logger: !include logger/logger_no_serial.yaml
|
||||
base: !include device_base_esp8266.yaml
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
@ -51,7 +51,6 @@ sensor:
|
||||
icon: mdi:flash
|
||||
power_id: power
|
||||
method: trapezoid
|
||||
min_save_interval: 10min
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
|
@ -2,14 +2,14 @@
|
||||
substitutions:
|
||||
board: esp01_1m
|
||||
restore_mode: ALWAYS_ON
|
||||
log_baud_rate: '0'
|
||||
|
||||
external_components:
|
||||
- source: github://cbpowell/ESPSense
|
||||
components: [ espsense ]
|
||||
|
||||
packages:
|
||||
base: !include device_base.yaml
|
||||
logger: !include logger/logger_no_serial.yaml
|
||||
base: !include device_base_esp8266.yaml
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
@ -61,7 +61,6 @@ sensor:
|
||||
name: ${device_name}
|
||||
power_id: power
|
||||
method: trapezoid
|
||||
min_save_interval: 10min
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
|
@ -1,3 +1,6 @@
|
||||
substitutions:
|
||||
log_baud_rate: '0'
|
||||
|
||||
uart:
|
||||
rx_pin: GPIO3
|
||||
tx_pin: GPIO1
|
||||
|
Loading…
Reference in New Issue
Block a user