-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tsunglung
committed
Jan 3, 2024
1 parent
810cfcd
commit 6b0ea21
Showing
5 changed files
with
231 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
substitutions: | ||
devicename: climate-taiseia | ||
upper_devicename: "Climate TaiSeia" | ||
|
||
esphome: | ||
name: $devicename | ||
friendly_name: ${upper_devicename} | ||
comment: $upper_devicename | ||
name_add_mac_suffix: true | ||
project: | ||
name: TaiSEIA.climate | ||
version: "1.0" | ||
|
||
external_components: | ||
- source: github://tsunglung/taixia@master | ||
components: [ taixia ] | ||
|
||
esp32: | ||
board: esp32dev | ||
|
||
wifi: | ||
ssid: !secret wifi_ssid | ||
password: !secret wifi_password | ||
# reboot_timeout: 0s | ||
ap: | ||
password: "admin1234" | ||
ap_timeout: 30s | ||
|
||
# Enable logging | ||
logger: | ||
baud_rate: 0 | ||
|
||
# Enable Home Assistant API | ||
api: | ||
|
||
ota: | ||
|
||
uart: | ||
id: uart_taixia | ||
tx_pin: TX | ||
rx_pin: RX | ||
baud_rate: 9600 | ||
|
||
binary_sensor: | ||
- platform: status | ||
name: "${upper_devicename} Status" | ||
|
||
button: | ||
- platform: restart | ||
name: "${upper_devicename} Restart" | ||
|
||
|
||
number: | ||
- platform: taixia | ||
type: airconditioner | ||
off_timer: | ||
name: "${upper_devicename} Off Timer" | ||
|
||
sensor: | ||
- platform: wifi_signal | ||
name: "${upper_devicename} WiFi Signal" | ||
update_interval: 60s | ||
|
||
- platform: uptime | ||
name: "${upper_devicename} Uptime" | ||
filters: | ||
- lambda: return x / 3600; | ||
unit_of_measurement: "h" | ||
accuracy_decimals: 1 | ||
|
||
- platform: taixia | ||
type: airconditioner | ||
temperature_indoor: | ||
name: "${upper_devicename} Temperature Indoor" | ||
humidity_indoor: | ||
name: "${upper_devicename} Humidity Indoor" | ||
temperature_outdoor: | ||
name: "${upper_devicename} Temperature Outdoor" | ||
energy_consumption: | ||
name: "${upper_devicename} Energy" | ||
operating_hours: | ||
name: "${upper_devicename} Operating Hours" | ||
|
||
switch: | ||
- platform: taixia | ||
type: airconditioner | ||
power: | ||
name: "${upper_devicename} Power Switch" | ||
beeper: | ||
name: "${upper_devicename} Buzzer" | ||
|
||
text_sensor: | ||
- platform: wifi_info | ||
ip_address: | ||
name: "${upper_devicename} IP Address" | ||
- platform: taixia | ||
sa_id: | ||
name: "${upper_devicename} SA ID" | ||
brand: | ||
name: "${upper_devicename} SA Brand" | ||
model: | ||
name: "${upper_devicename} SA Model" | ||
version: | ||
name: "${upper_devicename} SA Version" | ||
services: | ||
name: "${upper_devicename} SA Services" | ||
|
||
taixia: | ||
sa_id: 1 | ||
|
||
time: | ||
- platform: homeassistant | ||
id: homeassistant_time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
substitutions: | ||
devicename: fan-taiseia | ||
upper_devicename: "Fan TaiSeia" | ||
|
||
esphome: | ||
name: $devicename | ||
friendly_name: ${upper_devicename} | ||
comment: $upper_devicename | ||
name_add_mac_suffix: true | ||
project: | ||
name: TaiSEIA.climate | ||
version: "1.0" | ||
|
||
external_components: | ||
- source: github://tsunglung/taixia@master | ||
components: [ taixia ] | ||
|
||
esp32: | ||
board: esp32dev | ||
|
||
wifi: | ||
ssid: !secret wifi_ssid | ||
password: !secret wifi_password | ||
# reboot_timeout: 0s | ||
ap: | ||
password: "admin1234" | ||
ap_timeout: 30s | ||
|
||
# Enable logging | ||
logger: | ||
baud_rate: 0 | ||
|
||
# Enable Home Assistant API | ||
api: | ||
|
||
ota: | ||
|
||
uart: | ||
id: uart_taixia | ||
tx_pin: TX | ||
rx_pin: RX | ||
baud_rate: 9600 | ||
|
||
binary_sensor: | ||
- platform: status | ||
name: "${upper_devicename} Status" | ||
|
||
button: | ||
- platform: restart | ||
name: "${upper_devicename} Restart" | ||
|
||
fan: | ||
- platform: taixia | ||
name: ${upper_devicename} | ||
speed: true | ||
speed_count: 2 | ||
|
||
number: | ||
- platform: taixia | ||
type: electricfan | ||
off_timer: | ||
name: "${upper_devicename} Off Timer" | ||
|
||
sensor: | ||
- platform: wifi_signal | ||
name: "${upper_devicename} WiFi Signal" | ||
update_interval: 60s | ||
|
||
- platform: uptime | ||
name: "${upper_devicename} Uptime" | ||
filters: | ||
- lambda: return x / 3600; | ||
unit_of_measurement: "h" | ||
accuracy_decimals: 1 | ||
|
||
switch: | ||
- platform: taixia | ||
type: electricfan | ||
power: | ||
name: "${upper_devicename} Power Switch" | ||
|
||
text_sensor: | ||
- platform: wifi_info | ||
ip_address: | ||
name: "${upper_devicename} IP Address" | ||
- platform: taixia | ||
sa_id: | ||
name: "${upper_devicename} SA ID" | ||
brand: | ||
name: "${upper_devicename} SA Brand" | ||
model: | ||
name: "${upper_devicename} SA Model" | ||
version: | ||
name: "${upper_devicename} SA Version" | ||
services: | ||
name: "${upper_devicename} SA Services" | ||
|
||
taixia: | ||
sa_id: 15 | ||
|
||
time: | ||
- platform: homeassistant | ||
id: homeassistant_time |