mirror of
https://github.com/GrKoR/esphome_aux_ac_component.git
synced 2025-12-12 14:37:11 +03:00
partial 3
This commit is contained in:
@@ -1,148 +0,0 @@
|
|||||||
external_components:
|
|
||||||
- source:
|
|
||||||
type: git
|
|
||||||
url: https://github.com/Brokly/esphome_aux_ac_component
|
|
||||||
#type: local
|
|
||||||
#path: my_components
|
|
||||||
components: [ aux_ac ]
|
|
||||||
refresh: 0s
|
|
||||||
|
|
||||||
esphome:
|
|
||||||
name: $devicename
|
|
||||||
platform: ESP8266
|
|
||||||
board: esp12e
|
|
||||||
|
|
||||||
#esp32:
|
|
||||||
# board: nodemcu-32s
|
|
||||||
# framework:
|
|
||||||
# type: arduino
|
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: !secret wifi_ssid
|
|
||||||
password: !secret wifi_pass
|
|
||||||
manual_ip:
|
|
||||||
static_ip: ${wifi_ip}
|
|
||||||
gateway: !secret gateway
|
|
||||||
subnet: !secret subnet
|
|
||||||
dns1: !secret dns1
|
|
||||||
dns2: !secret dns2
|
|
||||||
ap:
|
|
||||||
ssid: ${upper_devicename} Hotspot
|
|
||||||
password: !secret ap_wifi_pass
|
|
||||||
|
|
||||||
captive_portal:
|
|
||||||
|
|
||||||
debug:
|
|
||||||
|
|
||||||
logger:
|
|
||||||
level: DEBUG
|
|
||||||
baud_rate: 0
|
|
||||||
|
|
||||||
api:
|
|
||||||
password: !secret api_pass
|
|
||||||
|
|
||||||
ota:
|
|
||||||
password: !secret ota_pass
|
|
||||||
|
|
||||||
web_server:
|
|
||||||
port: 80
|
|
||||||
auth:
|
|
||||||
username: !secret web_user
|
|
||||||
password: !secret web_pass
|
|
||||||
|
|
||||||
uart:
|
|
||||||
id: ac_uart_bus
|
|
||||||
#tx_pin: GPIO16
|
|
||||||
#rx_pin: GPIO17
|
|
||||||
tx_pin: GPIO1
|
|
||||||
rx_pin: GPIO3
|
|
||||||
baud_rate: 4800
|
|
||||||
data_bits: 8
|
|
||||||
parity: EVEN
|
|
||||||
stop_bits: 1
|
|
||||||
|
|
||||||
climate:
|
|
||||||
- platform: aux_ac
|
|
||||||
name: ${upper_devicename}
|
|
||||||
id: aux_id
|
|
||||||
uart_id: ac_uart_bus
|
|
||||||
period: 7s
|
|
||||||
show_action: true
|
|
||||||
display_inverted: false
|
|
||||||
store_settings: true
|
|
||||||
indoor_temperature:
|
|
||||||
name: ${upper_devicename} Indoor Temperature
|
|
||||||
id: ${low_devicename}_indoor_temp
|
|
||||||
internal: false
|
|
||||||
outdoor_temperature:
|
|
||||||
name: ${upper_devicename} Outdoor Temperature
|
|
||||||
id: ${low_devicename}_outdoor_temp
|
|
||||||
internal: false
|
|
||||||
outbound_temperature:
|
|
||||||
name: ${upper_devicename} Colant Outbound Temperature
|
|
||||||
id: ${low_devicename}_outbound_temp
|
|
||||||
internal: false
|
|
||||||
inbound_temperature:
|
|
||||||
name: ${upper_devicename} Colant Inbound Temperature
|
|
||||||
id: ${low_devicename}_inbound_temp
|
|
||||||
internal: false
|
|
||||||
strange_temperature:
|
|
||||||
name: ${upper_devicename} Strange Temperature
|
|
||||||
id: ${low_devicename}_strange_temp
|
|
||||||
internal: false
|
|
||||||
display_state:
|
|
||||||
name: $upper_devicename Display State
|
|
||||||
id: ${low_devicename}_display_state
|
|
||||||
internal: false
|
|
||||||
defrost_state:
|
|
||||||
name: $upper_devicename Defrost State
|
|
||||||
id: ${low_devicename}_defrost_state
|
|
||||||
internal: false
|
|
||||||
invertor_power:
|
|
||||||
name: $upper_devicename Invertor Power
|
|
||||||
id: ${low_devicename}_invertor_power
|
|
||||||
internal: false
|
|
||||||
visual:
|
|
||||||
min_temperature: 16
|
|
||||||
max_temperature: 32
|
|
||||||
temperature_step: 1
|
|
||||||
supported_modes:
|
|
||||||
- HEAT_COOL
|
|
||||||
- COOL
|
|
||||||
- HEAT
|
|
||||||
- DRY
|
|
||||||
- FAN_ONLY
|
|
||||||
custom_fan_modes:
|
|
||||||
- MUTE
|
|
||||||
- TURBO
|
|
||||||
supported_presets:
|
|
||||||
- SLEEP
|
|
||||||
custom_presets:
|
|
||||||
- CLEAN
|
|
||||||
- HEALTH
|
|
||||||
- ANTIFUNGUS
|
|
||||||
supported_swing_modes:
|
|
||||||
- VERTICAL
|
|
||||||
- HORIZONTAL
|
|
||||||
- BOTH
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: wifi_signal
|
|
||||||
name: ${upper_devicename} WiFi Signal
|
|
||||||
update_interval: 30s
|
|
||||||
unit_of_measurement: "dBa"
|
|
||||||
accuracy_decimals: 0
|
|
||||||
|
|
||||||
switch:
|
|
||||||
- platform: template
|
|
||||||
name: $upper_devicename Display
|
|
||||||
lambda: |-
|
|
||||||
if (id(${low_devicename}_display_state).state) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
turn_on_action:
|
|
||||||
- aux_ac.display_on: aux_id
|
|
||||||
turn_off_action:
|
|
||||||
- aux_ac.display_off: aux_id
|
|
||||||
@@ -5,12 +5,12 @@ external_components:
|
|||||||
components: [ aux_ac ]
|
components: [ aux_ac ]
|
||||||
refresh: 0s
|
refresh: 0s
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
name: $devicename
|
name: $devicename
|
||||||
platform: ESP8266
|
platform: ESP8266
|
||||||
board: esp12e
|
board: esp12e
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
ssid: !secret wifi_ssid
|
ssid: !secret wifi_ssid
|
||||||
password: !secret wifi_pass
|
password: !secret wifi_pass
|
||||||
manual_ip:
|
manual_ip:
|
||||||
@@ -22,30 +22,30 @@ external_components:
|
|||||||
password: !secret wifi_ap_pass
|
password: !secret wifi_ap_pass
|
||||||
use_address: ${wifi_ota_ip}
|
use_address: ${wifi_ota_ip}
|
||||||
|
|
||||||
captive_portal:
|
captive_portal:
|
||||||
debug:
|
debug:
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
level: DEBUG
|
level: DEBUG
|
||||||
baud_rate: 0
|
baud_rate: 0
|
||||||
# set hardware_uart to UART1 and comment out baud_rate above in case of boot crashes
|
# set hardware_uart to UART1 and comment out baud_rate above in case of boot crashes
|
||||||
# it is suitable if you need hardware loggin
|
# it is suitable if you need hardware loggin
|
||||||
# hardware_uart: UART1
|
# hardware_uart: UART1
|
||||||
|
|
||||||
api:
|
api:
|
||||||
password: !secret api_pass
|
password: !secret api_pass
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
password: !secret ota_pass
|
password: !secret ota_pass
|
||||||
|
|
||||||
web_server:
|
web_server:
|
||||||
port: 80
|
port: 80
|
||||||
auth:
|
auth:
|
||||||
username: !secret web_server_user
|
username: !secret web_server_user
|
||||||
password: !secret web_server_password
|
password: !secret web_server_password
|
||||||
|
|
||||||
# UART0 configuration for AUX air conditioner communication
|
# UART0 configuration for AUX air conditioner communication
|
||||||
uart:
|
uart:
|
||||||
id: ac_uart_bus
|
id: ac_uart_bus
|
||||||
tx_pin: GPIO1
|
tx_pin: GPIO1
|
||||||
rx_pin: GPIO3
|
rx_pin: GPIO3
|
||||||
@@ -56,7 +56,7 @@ external_components:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
climate:
|
climate:
|
||||||
- platform: aux_ac
|
- platform: aux_ac
|
||||||
name: ${upper_devicename}
|
name: ${upper_devicename}
|
||||||
id: aux_id
|
id: aux_id
|
||||||
@@ -98,7 +98,7 @@ external_components:
|
|||||||
- BOTH
|
- BOTH
|
||||||
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
# just wifi signal strength for debug purpose only
|
# just wifi signal strength for debug purpose only
|
||||||
- platform: wifi_signal
|
- platform: wifi_signal
|
||||||
name: ${upper_devicename} WiFi Signal
|
name: ${upper_devicename} WiFi Signal
|
||||||
@@ -107,7 +107,7 @@ external_components:
|
|||||||
accuracy_decimals: 0
|
accuracy_decimals: 0
|
||||||
|
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: $upper_devicename Display
|
name: $upper_devicename Display
|
||||||
lambda: |-
|
lambda: |-
|
||||||
@@ -120,4 +120,3 @@ external_components:
|
|||||||
- aux_ac.display_on: aux_id
|
- aux_ac.display_on: aux_id
|
||||||
turn_off_action:
|
turn_off_action:
|
||||||
- aux_ac.display_off: aux_id
|
- aux_ac.display_off: aux_id
|
||||||
|
|
||||||
@@ -6,8 +6,7 @@
|
|||||||
#===================================================================================
|
#===================================================================================
|
||||||
|
|
||||||
substitutions:
|
substitutions:
|
||||||
devicename: kitchen-ac
|
devicename: kitchen_ac
|
||||||
low_devicename: kitchen_ac
|
|
||||||
upper_devicename: Kitchen AC
|
upper_devicename: Kitchen AC
|
||||||
|
|
||||||
# use different wifi_ip and wifi_ota_ip in case of esp ip-address change
|
# use different wifi_ip and wifi_ota_ip in case of esp ip-address change
|
||||||
@@ -15,4 +14,4 @@ substitutions:
|
|||||||
wifi_ip: !secret wifi_ip_kitchen
|
wifi_ip: !secret wifi_ip_kitchen
|
||||||
wifi_ota_ip: !secret wifi_ota_ip_kitchen
|
wifi_ota_ip: !secret wifi_ota_ip_kitchen
|
||||||
|
|
||||||
<<: !include ac-energolux-bern.yaml
|
<<: !include ac_common.yaml
|
||||||
@@ -6,8 +6,7 @@
|
|||||||
#===================================================================================
|
#===================================================================================
|
||||||
|
|
||||||
substitutions:
|
substitutions:
|
||||||
devicename: livingroom-ac
|
devicename: livingroom_ac
|
||||||
low_devicename: livingroom_ac
|
|
||||||
upper_devicename: Livingroom AC
|
upper_devicename: Livingroom AC
|
||||||
|
|
||||||
# use different wifi_ip and wifi_ota_ip in case of esp ip-address change
|
# use different wifi_ip and wifi_ota_ip in case of esp ip-address change
|
||||||
@@ -15,4 +14,4 @@ substitutions:
|
|||||||
wifi_ip: !secret wifi_ip_livingroom
|
wifi_ip: !secret wifi_ip_livingroom
|
||||||
wifi_ota_ip: !secret wifi_ota_ip_livingroom
|
wifi_ota_ip: !secret wifi_ota_ip_livingroom
|
||||||
|
|
||||||
<<: !include ac-energolux-bern.yaml
|
<<: !include ac_common.yaml
|
||||||
Reference in New Issue
Block a user