mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Add garage_fridge
Add patio_lights Add Feit dimmer common files Add office_light
This commit is contained in:
parent
111051b70f
commit
414acf54cb
@ -12,7 +12,7 @@ esphome:
|
|||||||
<<: !include common/esphome.yaml
|
<<: !include common/esphome.yaml
|
||||||
|
|
||||||
<<: !include common/common.yaml
|
<<: !include common/common.yaml
|
||||||
<<: !include common/logger.yaml
|
<<: !include common/logger/logger.yaml
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- !include common/binary_sensor/status.yaml
|
- !include common/binary_sensor/status.yaml
|
||||||
|
29
.standard_tuya_feit_dimmer.yaml
Normal file
29
.standard_tuya_feit_dimmer.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
substitutions:
|
||||||
|
device_id:
|
||||||
|
device_name:
|
||||||
|
platform: ESP8266
|
||||||
|
board: esp01_1m
|
||||||
|
ip_address: !secret _ip
|
||||||
|
ota_pwd: !secret _ota_pwd
|
||||||
|
api_pwd: !secret _api_pwd
|
||||||
|
ap_wifi_pwd: !secret _ap_wifi_pwd
|
||||||
|
|
||||||
|
esphome:
|
||||||
|
<<: !include common/esphome.yaml
|
||||||
|
|
||||||
|
<<: !include common/common_tuya_feit_dimmer.yaml
|
||||||
|
<<: !include common/logger/logger_tuya_no_log.yaml
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- !include common/binary_sensor/status.yaml
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- !include common/sensor/uptime.yaml
|
||||||
|
- !include common/sensor/wifi.yaml
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- !include common/switch/restart.yaml
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- !include common/text_sensor/version.yaml
|
||||||
|
- !include common/text_sensor/wifi.yaml
|
@ -12,7 +12,7 @@ esphome:
|
|||||||
<<: !include common/esphome.yaml
|
<<: !include common/esphome.yaml
|
||||||
|
|
||||||
<<: !include common/common.yaml
|
<<: !include common/common.yaml
|
||||||
<<: !include common/logger.yaml
|
<<: !include common/logger/logger.yaml
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- !include common/binary_sensor/status.yaml
|
- !include common/binary_sensor/status.yaml
|
||||||
|
11
common/common_tuya_feit_dimmer.yaml
Normal file
11
common/common_tuya_feit_dimmer.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<<: !include wifi.yaml
|
||||||
|
<<: !include api.yaml
|
||||||
|
<<: !include ota.yaml
|
||||||
|
|
||||||
|
tuya:
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- !include uart/tuya_feit_dimmer.yaml
|
||||||
|
|
||||||
|
light:
|
||||||
|
- !include light/tuya_feit_dimmer.yaml
|
7
common/light/tuya_feit_dimmer.yaml
Normal file
7
common/light/tuya_feit_dimmer.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
platform: "tuya"
|
||||||
|
id: tuya_light
|
||||||
|
name: ${device_name}
|
||||||
|
dimmer_datapoint: 2
|
||||||
|
switch_datapoint: 1
|
||||||
|
min_value: 0
|
||||||
|
max_value: 1000
|
3
common/logger/logger_tuya.yaml
Normal file
3
common/logger/logger_tuya.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
logger:
|
||||||
|
level: DEBUG
|
||||||
|
baud_rate: 0
|
3
common/uart/tuya_feit_dimmer.yaml
Normal file
3
common/uart/tuya_feit_dimmer.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
rx_pin: GPIO3
|
||||||
|
tx_pin: GPIO1
|
||||||
|
baud_rate: 9600
|
116
garage_fridge.yaml
Normal file
116
garage_fridge.yaml
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
substitutions:
|
||||||
|
device_id: garage_fridge
|
||||||
|
device_name: Garage Fridge
|
||||||
|
platform: ESP8266
|
||||||
|
board: nodemcuv2
|
||||||
|
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_wifi_pwd
|
||||||
|
|
||||||
|
esphome:
|
||||||
|
<<: !include common/esphome.yaml
|
||||||
|
|
||||||
|
<<: !include common/common.yaml
|
||||||
|
<<: !include common/logger/logger.yaml
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- !include common/binary_sensor/status.yaml
|
||||||
|
- platform: template
|
||||||
|
id: fridge_heater
|
||||||
|
name: "Garage Fridge Heater"
|
||||||
|
lambda: return id(fridge_heater_switch).state;
|
||||||
|
- platform: template
|
||||||
|
id: compressor_heater
|
||||||
|
name: "Garage Fridge Compressor Heater"
|
||||||
|
lambda: return id(compressor_heater_switch).state;
|
||||||
|
|
||||||
|
dallas:
|
||||||
|
- pin: D2
|
||||||
|
|
||||||
|
script:
|
||||||
|
- id: fridge_heater_control
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
if (!id(fridge_heater_switch).state) {
|
||||||
|
if (id(fridge_temp_avg).state < 33.5) {
|
||||||
|
id(fridge_heater_switch).turn_on();
|
||||||
|
} else if (id(freezer_temp).state > 22 && id(fridge_temp).state < 36) {
|
||||||
|
id(fridge_heater_switch).turn_on();
|
||||||
|
}
|
||||||
|
} else if (id(fridge_heater_switch).state) {
|
||||||
|
if (id(fridge_temp_avg).state > 34 && id(freezer_temp).state < 20) {
|
||||||
|
id(fridge_heater_switch).turn_off();
|
||||||
|
}
|
||||||
|
else if (id(fridge_temp_avg).state > 38) {
|
||||||
|
id(fridge_heater_switch).turn_off();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- !include common/sensor/uptime.yaml
|
||||||
|
- !include common/sensor/wifi.yaml
|
||||||
|
- platform: dallas
|
||||||
|
id: fridge_temp
|
||||||
|
name: "Garage Fridge Temperature"
|
||||||
|
unit_of_measurement: "°F"
|
||||||
|
accuracy_decimals: 1
|
||||||
|
address: 0x6E01142F5AA82D28
|
||||||
|
filters:
|
||||||
|
- lambda: return x * (9.0/5.0) + 32.0;
|
||||||
|
- platform: dallas
|
||||||
|
id: freezer_temp
|
||||||
|
name: "Garage Freezer Temperature"
|
||||||
|
unit_of_measurement: "°F"
|
||||||
|
accuracy_decimals: 1
|
||||||
|
address: 0xEF01142F57328028
|
||||||
|
filters:
|
||||||
|
- lambda: return x * (9.0/5.0) + 32.0;
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- script.execute: fridge_heater_control
|
||||||
|
- platform: dallas
|
||||||
|
id: comp_temp
|
||||||
|
name: "Garage Fridge Compressor Temperature"
|
||||||
|
unit_of_measurement: "°F"
|
||||||
|
accuracy_decimals: 1
|
||||||
|
address: 0x3F02099245F52528
|
||||||
|
filters:
|
||||||
|
- lambda: return x * (9.0/5.0) + 32.0;
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
if (x < 43 && !id(compressor_heater_switch).state) {
|
||||||
|
id(compressor_heater_switch).turn_on();
|
||||||
|
} else if (x > 45 && id(compressor_heater_switch).state) {
|
||||||
|
id(compressor_heater_switch).turn_off();
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: fridge_temp_avg
|
||||||
|
name: "Garage Fridge Rolling Average Temperature"
|
||||||
|
unit_of_measurement: "°F"
|
||||||
|
accuracy_decimals: 1
|
||||||
|
update_interval: 15s
|
||||||
|
lambda: return id(fridge_temp).state;
|
||||||
|
filters:
|
||||||
|
- sliding_window_moving_average:
|
||||||
|
window_size: 60
|
||||||
|
send_every: 1
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- script.execute: fridge_heater_control
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- !include common/switch/restart.yaml
|
||||||
|
- platform: gpio
|
||||||
|
id: fridge_heater_switch
|
||||||
|
pin: D0
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
id: compressor_heater_switch
|
||||||
|
pin: D1
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- !include common/text_sensor/version.yaml
|
||||||
|
- !include common/text_sensor/wifi.yaml
|
@ -14,7 +14,7 @@ esphome:
|
|||||||
- bed_sensor.h
|
- bed_sensor.h
|
||||||
|
|
||||||
<<: !include common/common.yaml
|
<<: !include common/common.yaml
|
||||||
<<: !include common/logger.yaml
|
<<: !include common/logger/logger.yaml
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- !include common/binary_sensor/status.yaml
|
- !include common/binary_sensor/status.yaml
|
||||||
|
29
office_light.yaml
Normal file
29
office_light.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
substitutions:
|
||||||
|
device_id: office_light
|
||||||
|
device_name: Office Light
|
||||||
|
platform: ESP8266
|
||||||
|
board: esp01_1m
|
||||||
|
ip_address: !secret office_light_ip
|
||||||
|
ota_pwd: !secret office_light_ota_pwd
|
||||||
|
api_pwd: !secret office_light_api_pwd
|
||||||
|
ap_wifi_pwd: !secret office_light_ap_wifi_pwd
|
||||||
|
|
||||||
|
esphome:
|
||||||
|
<<: !include common/esphome.yaml
|
||||||
|
|
||||||
|
<<: !include common/common_tuya_feit_dimmer.yaml
|
||||||
|
<<: !include common/logger/logger_tuya_no_log.yaml
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- !include common/binary_sensor/status.yaml
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- !include common/sensor/uptime.yaml
|
||||||
|
- !include common/sensor/wifi.yaml
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- !include common/switch/restart.yaml
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- !include common/text_sensor/version.yaml
|
||||||
|
- !include common/text_sensor/wifi.yaml
|
35
patio_lights.yaml
Normal file
35
patio_lights.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
substitutions:
|
||||||
|
device_id: patio_lights
|
||||||
|
device_name: Patio Lights
|
||||||
|
platform: ESP8266
|
||||||
|
board: d1_mini
|
||||||
|
ip_address: !secret patio_lights_ip
|
||||||
|
ota_pwd: !secret patio_lights_ota_pwd
|
||||||
|
api_pwd: !secret patio_lights_api_pwd
|
||||||
|
ap_wifi_pwd: !secret patio_lights_ap_wifi_pwd
|
||||||
|
|
||||||
|
esphome:
|
||||||
|
<<: !include common/esphome.yaml
|
||||||
|
|
||||||
|
<<: !include common/common.yaml
|
||||||
|
<<: !include common/logger/logger.yaml
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- !include common/binary_sensor/status.yaml
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- !include common/sensor/uptime.yaml
|
||||||
|
- !include common/sensor/wifi.yaml
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- !include common/switch/restart.yaml
|
||||||
|
- platform: gpio
|
||||||
|
id: patio_lights
|
||||||
|
name: "Patio Lights"
|
||||||
|
icon: mdi:lightbulb
|
||||||
|
pin: D1
|
||||||
|
inverted: false
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- !include common/text_sensor/version.yaml
|
||||||
|
- !include common/text_sensor/wifi.yaml
|
Loading…
Reference in New Issue
Block a user