├── climate-h.ota.bin ├── climate-p.ota.bin ├── climate-h.factory.bin ├── climate-p-new.ota.bin ├── climate-p-v2.ota.bin ├── climate-p.factory.bin ├── dehumidifier.ota.bin ├── c3-mini-climate-h.ota.bin ├── c3-mini-climate-p.ota.bin ├── climate-h-v2.factory.bin ├── climate-p-v2.factory.bin ├── dehumidifier.factory.bin ├── c3-mini-climate-h.factory.bin ├── c3-mini-climate-p.factory.bin ├── c3-mini-dehumidifier.factory.bin ├── Hitachi ├── ERV-ESP32C3.yaml ├── Climate-ESP32.yaml ├── Dehumidifier-ESP32C3.yaml ├── Climate-ESP32C3.yaml └── Dehumidifier-ESP32.yaml ├── README.md └── Panasonic ├── Climate-sample-ESP32C3.yaml └── Climate-sample-ESP32.yaml /climate-h.ota.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/climate-h.ota.bin -------------------------------------------------------------------------------- /climate-p.ota.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/climate-p.ota.bin -------------------------------------------------------------------------------- /climate-h.factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/climate-h.factory.bin -------------------------------------------------------------------------------- /climate-p-new.ota.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/climate-p-new.ota.bin -------------------------------------------------------------------------------- /climate-p-v2.ota.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/climate-p-v2.ota.bin -------------------------------------------------------------------------------- /climate-p.factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/climate-p.factory.bin -------------------------------------------------------------------------------- /dehumidifier.ota.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/dehumidifier.ota.bin -------------------------------------------------------------------------------- /c3-mini-climate-h.ota.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/c3-mini-climate-h.ota.bin -------------------------------------------------------------------------------- /c3-mini-climate-p.ota.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/c3-mini-climate-p.ota.bin -------------------------------------------------------------------------------- /climate-h-v2.factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/climate-h-v2.factory.bin -------------------------------------------------------------------------------- /climate-p-v2.factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/climate-p-v2.factory.bin -------------------------------------------------------------------------------- /dehumidifier.factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/dehumidifier.factory.bin -------------------------------------------------------------------------------- /c3-mini-climate-h.factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/c3-mini-climate-h.factory.bin -------------------------------------------------------------------------------- /c3-mini-climate-p.factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/c3-mini-climate-p.factory.bin -------------------------------------------------------------------------------- /c3-mini-dehumidifier.factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xangin/TaiSEIA_ESPhome_samples/HEAD/c3-mini-dehumidifier.factory.bin -------------------------------------------------------------------------------- /Hitachi/ERV-ESP32C3.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | devicename: erv-h #記得每台要不同名稱避免打架 3 | upper_devicename: "ERV-H" 4 | model_name: "ERV" #可加註冷氣型號 5 | 6 | esphome: 7 | name: $devicename 8 | friendly_name: ${upper_devicename} 9 | comment: ESP32C3 for $model_name 10 | project: 11 | name: "TaiSEIA-Hitachi.$model_name" 12 | version: "ESP32C3" 13 | 14 | external_components: 15 | - source: github://tsunglung/taixia@master 16 | components: [ taixia ] 17 | 18 | esp32: 19 | board: airm2m_core_esp32c3 20 | framework: 21 | type: arduino 22 | 23 | wifi: 24 | ssid: !secret wifi_ssid 25 | password: !secret wifi_password 26 | 27 | # Enable fallback hotspot (captive portal) in case wifi connection fails 28 | ap: 29 | ssid: ${devicename} 30 | password: "12345678" 31 | 32 | captive_portal: 33 | 34 | # Enable logging 35 | logger: 36 | baud_rate: 0 # disable serial logging; 37 | # level: VERY_VERBOSE 38 | 39 | # Enable Home Assistant API 40 | api: 41 | 42 | ota: 43 | - platform: esphome 44 | 45 | web_server: 46 | 47 | uart: 48 | id: uart_taixia 49 | tx_pin: GPIO7 #21 #pin3 (RX to AC) 50 | rx_pin: GPIO6 #20 #pin4 (TX from AC) 51 | baud_rate: 9600 52 | debug: 53 | direction: BOTH 54 | 55 | 56 | # optional binary sensor to monitor serial connection: 57 | binary_sensor: 58 | - platform: status 59 | name: "Status" 60 | 61 | status_led: 62 | pin: 63 | number: GPIO8 # Blue LED 64 | #inverted: True # C3 pro need set True 65 | 66 | climate: 67 | - platform: taixia 68 | sa_id: 14 69 | name: "Climate" 70 | supported_modes: 71 | - COOL 72 | - HEAT 73 | - DRY 74 | - FAN_ONLY 75 | 76 | button: 77 | - platform: safe_mode 78 | name: "Safe Mode Boot" 79 | entity_category: diagnostic 80 | - platform: restart 81 | name: "Restart" 82 | 83 | number: 84 | - platform: taixia 85 | type: erv 86 | on_timer: 87 | name: "On Timer" 88 | 89 | select: 90 | - platform: taixia 91 | type: erv 92 | ventilate_mode: 93 | name: "Ventilate Mode" 94 | pre_heat_cool: 95 | name: "Pre Heat/Cool" 96 | 97 | 98 | sensor: 99 | - platform: wifi_signal 100 | name: "WiFi Signal" 101 | update_interval: 60s 102 | 103 | - platform: uptime 104 | name: "Uptime" 105 | filters: 106 | - lambda: return x / 3600; 107 | unit_of_measurement: "h" 108 | accuracy_decimals: 1 109 | 110 | - platform: taixia 111 | type: erv 112 | temperature_indoor: 113 | name: "Temperature In" 114 | temperature_outdoor: 115 | name: "Temperature Out" 116 | 117 | 118 | switch: 119 | - platform: taixia 120 | type: airconditioner 121 | power: 122 | name: "Power Switch" 123 | 124 | 125 | text_sensor: 126 | - platform: version 127 | name: "ESPHome Version" 128 | - platform: wifi_info 129 | ip_address: 130 | name: "IP Address" 131 | - platform: taixia 132 | sa_id: 133 | name: "SA ID" 134 | id: sa_id 135 | brand: 136 | name: "SA Brand" 137 | model: 138 | name: "SA Model" 139 | version: 140 | name: "SA Version" 141 | services: 142 | name: "SA Services" 143 | 144 | taixia: 145 | sa_id: 14 146 | 147 | time: 148 | - platform: homeassistant 149 | id: homeassistant_time 150 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TaiSEIA_ESPhome_samples 2 | 3 | 感謝[洋蔥大神](https://github.com/tsunglung/taixia)開發TaiSEIA for ESPhome,才能有此範例 4 | 5 | 此範例使用[MH-ET LIVE minikit for ESP32](https://doc.riot-os.org/group__boards__esp32__mh-et-live-minikit.html)硬體,新版本改用[ESP32C3](https://www.nologo.tech/product/esp32/esp32c3/esp32c3supermini/esp32C3SuperMini.html)體積更小,另加DC-DC轉5V(國際牌)與level shifter轉3.3V 6 | 7 | 適用廠牌: **國際牌壁掛冷氣、日立壁掛&吊隱冷氣、日立除濕機** 8 | 9 | 適用型號: 可外接原廠Wi-Fi智慧模組的機型,安裝簡單方便 10 | 11 | 根據廠牌與機器分開範例,基本上只要修改最頂端的兩個名稱即可,方便OTA與辨識是哪一台 12 | 13 | 請根據下表選擇適合的檔案燒錄 14 | 15 | | 檔名 | 適用廠牌 | 燒錄方式 | 適用模組(外觀) | Bin檔 | YAML | 16 | |-------|:-----:|:-----:|:-----:|:-----:|-------| 17 | | c3-mini-climate-h.factory.bin | 日立冷氣 | 接USB直接燒錄 | ESP32C3(小) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/c3-mini-climate-h.factory.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Hitachi/Climate-ESP32C3.yaml) | 18 | | c3-mini-climate-h.ota.bin | 日立冷氣 | web server OTA用 | ESP32C3(小) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/c3-mini-climate-h.ota.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Hitachi/Climate-ESP32C3.yaml) | 19 | | c3-mini-climate-p.factory.bin | 國際牌冷氣 | 接USB直接燒錄 | ESP32C3(小) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/c3-mini-climate-p.factory.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Panasonic/Climate-sample-ESP32C3.yaml) | 20 | | c3-mini-climate-p.ota.bin | 國際牌冷氣 | web server OTA用 | ESP32C3(小) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/c3-mini-climate-p.ota.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Panasonic/Climate-sample-ESP32C3.yaml) | 21 | | c3-mini-dehumidifier.factory.bin | 日立除濕機 | 接USB直接燒錄 | ESP32C3(小) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/c3-mini-dehumidifier.factory.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Hitachi/Dehumidifier-ESP32C3.yaml) | 22 | | climate-h.factory.bin | 日立冷氣 | 接USB直接燒錄 | ESP32(大) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/climate-h.factory.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Hitachi/Climate-ESP32.yaml) | 23 | | climate-h.ota.bin | 日立冷氣 | OTA專用 | ESP32(大) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/climate-h.ota.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Hitachi/Climate-ESP32.yaml) | 24 | | climate-p.factory.bin | 國際牌冷氣 | 接USB直接燒錄 | ESP32(大) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/climate-p.factory.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Panasonic/Climate-sample-ESP32.yaml) | 25 | | climate-p.ota.bin | 國際牌冷氣 | web server OTA用 | ESP32(大) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/climate-p.ota.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Panasonic/Climate-sample-ESP32.yaml) | 26 | | dehumidifier.factory.bin | 日立除濕機 | 接USB直接燒錄 | ESP32(大) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/dehumidifier.factory.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Hitachi/Dehumidifier-ESP32.yaml) | 27 | | dehumidifier.ota.bin | 日立除濕機 | OTA專用 | ESP32(大) | [Bin檔](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/dehumidifier.ota.bin) | [YAML](https://github.com/xangin/TaiSEIA_ESPhome_samples/blob/main/Hitachi/Dehumidifier-ESP32.yaml) | 28 | 29 | ## 如何下載 30 | 31 | 點擊檔案名稱>點右上角有個下載的圖案(Download Raw file)>儲存 32 | 33 | ## 使用方法 34 | 35 | ### A. 透過USB 36 | 37 | 1. 下載名稱結尾是factory.bin的檔案 38 | 2. 模組透過usb接上電腦 39 | 3. 用chrome或edge瀏覽器前往 [https://web.esphome.io](https://web.esphome.io/) 40 | 4. 按Connect>選擇寫有USB Single Serial(大)或USB JTAG(小)>按INSTALL>選擇剛儲存的Bin檔,等待燒錄完成 41 | 5. 顯示finish後,就可看到ESP32上面的藍燈開始閃爍,這時候等待久一點,會看到有熱點跑出來 42 | 6. 點連線並輸入Wi-Fi密碼: 12345678 43 | 7. 連上後輸入http://192.168.4.1 44 | 8. 進到網頁選擇家中Wi-Fi名稱及輸入密碼後按儲存,連上後HA應該就會自動發現此裝置 45 | 46 | ### B. OTA 47 | 48 | 1. 下載名稱結尾是ota.bin的檔案 49 | 2. 在瀏覽器網址列輸入裝置IP 50 | 3. 最下方OTA Update選擇ota.bin檔>按Update,等待畫面跳轉為done即完成 51 | 52 | -------------------------------------------------------------------------------- /Panasonic/Climate-sample-ESP32C3.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | devicename: climate-p 3 | upper_devicename: "Climate-P" 4 | model_name: "Climate" 5 | 6 | 7 | esphome: 8 | name: $devicename 9 | friendly_name: ${upper_devicename} 10 | comment: ESP32C3 for $model_name 11 | project: 12 | name: "TaiSEIA-Panasonic.$model_name" 13 | version: "ESP32C3" #hardware 14 | 15 | external_components: 16 | - source: github://tsunglung/taixia@master 17 | components: [ taixia ] 18 | 19 | esp32: 20 | board: airm2m_core_esp32c3 21 | framework: 22 | type: esp-idf 23 | 24 | wifi: 25 | ssid: !secret wifi_ssid 26 | password: !secret wifi_password 27 | 28 | # Enable fallback hotspot (captive portal) in case wifi connection fails 29 | ap: 30 | ssid: ${devicename} 31 | password: "12345678" 32 | 33 | captive_portal: 34 | 35 | # Enable logging 36 | logger: 37 | baud_rate: 0 # disable serial logging; 38 | # level: VERY_VERBOSE 39 | 40 | # Enable Home Assistant API 41 | api: 42 | 43 | ota: 44 | - platform: esphome 45 | 46 | web_server: 47 | 48 | uart: 49 | id: uart_taixia 50 | tx_pin: GPIO7 #pin3 (RX to AC) 51 | rx_pin: GPIO6 #pin4 (TX from AC) 52 | baud_rate: 9600 53 | debug: 54 | direction: BOTH 55 | 56 | status_led: 57 | pin: 58 | number: GPIO8 # Blue LED 59 | 60 | 61 | # optional binary sensor to monitor serial connection: 62 | binary_sensor: 63 | - platform: status 64 | name: "Status" 65 | 66 | button: 67 | - platform: safe_mode 68 | name: Safe Mode Boot 69 | entity_category: diagnostic 70 | - platform: restart 71 | name: "Restart" 72 | - platform: taixia 73 | type: airconditioner 74 | get_info: 75 | name: "Get Info" 76 | 77 | climate: 78 | - platform: taixia 79 | name: "Climate" 80 | supported_modes: 81 | - COOL 82 | - HEAT 83 | - DRY 84 | - FAN_ONLY 85 | supported_fan_modes: 86 | - LOW 87 | - MEDIUM 88 | - HIGH 89 | - AUTO 90 | supported_swing_modes: 91 | - VERTICAL 92 | - HORIZONTAL 93 | - BOTH 94 | supported_presets: 95 | - NONE 96 | - BOOST 97 | - ECO 98 | - ACTIVITY 99 | - SLEEP 100 | - AWAY 101 | 102 | 103 | number: 104 | - platform: taixia 105 | type: airconditioner 106 | off_timer: 107 | name: "Off Timer" 108 | 109 | sensor: 110 | - platform: wifi_signal 111 | name: "WiFi Signal" 112 | update_interval: 120s 113 | 114 | - platform: uptime 115 | name: "Uptime" 116 | filters: 117 | - lambda: return x / 3600; 118 | unit_of_measurement: "h" 119 | accuracy_decimals: 1 120 | 121 | - platform: internal_temperature 122 | name: "Internal Temperature" 123 | 124 | - platform: taixia 125 | type: airconditioner 126 | temperature_indoor: 127 | name: "Temperature Indoor" 128 | temperature_outdoor: 129 | name: "Temperature Outdoor" 130 | operating_current: 131 | name: "Current" 132 | energy_consumption: 133 | name: "Energy" 134 | operating_watt: 135 | name: "Power" 136 | 137 | select: 138 | - platform: taixia 139 | type: airconditioner 140 | display_mode: 141 | name: "Display Mode" 142 | 143 | switch: 144 | - platform: taixia 145 | type: airconditioner 146 | power: 147 | name: "Power Switch" 148 | beeper: 149 | name: "Buzzer" 150 | mildew_proof: 151 | name: "Mildew Proof" 152 | self_cleaning: 153 | name: "Self Cleaning" 154 | 155 | text_sensor: 156 | - platform: version 157 | name: "ESPHome Version" 158 | - platform: wifi_info 159 | ip_address: 160 | name: "IP Address" 161 | - platform: taixia 162 | sa_id: 163 | name: "SA ID" 164 | id: sa_id 165 | brand: 166 | name: "SA Brand" 167 | model: 168 | name: "SA Model" 169 | version: 170 | name: "SA Version" 171 | services: 172 | name: "SA Services" 173 | 174 | taixia: 175 | sa_id: 1 176 | response_time: 6500 177 | 178 | time: 179 | - platform: homeassistant 180 | id: homeassistant_time 181 | -------------------------------------------------------------------------------- /Panasonic/Climate-sample-ESP32.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | devicename: ac-guest-room 3 | upper_devicename: "Climate Guest Room" 4 | model_name: "PX22BA2(09250A19)" 5 | 6 | esphome: 7 | name: $devicename 8 | friendly_name: ${upper_devicename} 9 | comment: ESP32 for $model_name 10 | project: 11 | name: "TaiSEIA-Panasonic.$model_name" 12 | version: "ESP32" #hardware 13 | 14 | external_components: 15 | - source: github://tsunglung/taixia@master 16 | components: [ taixia ] 17 | #refresh: 0s 18 | 19 | 20 | esp32: 21 | board: wemos_d1_mini32 22 | framework: 23 | type: arduino 24 | 25 | wifi: 26 | ssid: !secret wifi_ssid 27 | password: !secret wifi_password 28 | 29 | # Enable fallback hotspot (captive portal) in case wifi connection fails 30 | ap: 31 | ssid: ${devicename} 32 | password: "12345678" 33 | 34 | captive_portal: 35 | 36 | # Enable logging 37 | logger: 38 | baud_rate: 0 # disable serial logging; 39 | # level: VERY_VERBOSE 40 | 41 | # Enable Home Assistant API 42 | api: 43 | 44 | ota: 45 | - platform: esphome #版本在2024.6前不需要此行 46 | 47 | #web_server: 48 | 49 | uart: 50 | id: uart_taixia 51 | tx_pin: GPIO17 #pin3 (RX to AC) 52 | rx_pin: GPIO16 #pin4 (TX from AC) 53 | baud_rate: 9600 54 | debug: 55 | direction: BOTH 56 | 57 | status_led: 58 | pin: 59 | number: GPIO2 # Blue LED 60 | 61 | 62 | # optional binary sensor to monitor serial connection: 63 | binary_sensor: 64 | - platform: status 65 | name: "Status" 66 | 67 | button: 68 | - platform: safe_mode 69 | name: Safe Mode Boot 70 | entity_category: diagnostic 71 | - platform: restart 72 | name: "Restart" 73 | - platform: taixia 74 | type: airconditioner 75 | get_info: 76 | name: "Get Info" 77 | 78 | climate: 79 | - platform: taixia 80 | name: "Climate" 81 | supported_modes: 82 | - COOL 83 | - HEAT 84 | - DRY 85 | - FAN_ONLY 86 | supported_fan_modes: 87 | - LOW 88 | - MEDIUM 89 | - HIGH 90 | - AUTO 91 | supported_swing_modes: 92 | - VERTICAL 93 | - HORIZONTAL 94 | - BOTH 95 | supported_presets: 96 | - NONE 97 | - BOOST 98 | - ECO 99 | - ACTIVITY 100 | - SLEEP 101 | 102 | 103 | number: 104 | - platform: taixia 105 | type: airconditioner 106 | off_timer: 107 | name: "Off Timer" 108 | 109 | sensor: 110 | - platform: wifi_signal 111 | name: "WiFi Signal" 112 | update_interval: 60s 113 | 114 | - platform: uptime 115 | name: "Uptime" 116 | filters: 117 | - lambda: return x / 3600; 118 | unit_of_measurement: "h" 119 | accuracy_decimals: 1 120 | 121 | - platform: internal_temperature 122 | name: "Internal Temperature" 123 | 124 | - platform: taixia 125 | type: airconditioner 126 | temperature_indoor: 127 | name: "Temperature Indoor" 128 | temperature_outdoor: 129 | name: "Temperature Outdoor" 130 | operating_current: 131 | name: "Current" 132 | energy_consumption: 133 | state_class: total_increasing 134 | name: "Energy" 135 | operating_watt: 136 | name: "Power" 137 | 138 | select: 139 | - platform: taixia 140 | type: airconditioner 141 | display_mode: 142 | name: "Display Mode" 143 | 144 | switch: 145 | - platform: taixia 146 | type: airconditioner 147 | power: 148 | name: "Power Switch" 149 | beeper: 150 | name: "Buzzer" 151 | mildew_proof: 152 | name: "Mildew Proof" 153 | self_cleaning: 154 | name: "Self Cleaning" 155 | 156 | text_sensor: 157 | - platform: version 158 | name: "ESPHome Version" 159 | - platform: wifi_info 160 | ip_address: 161 | name: "IP Address" 162 | - platform: taixia 163 | sa_id: 164 | name: "SA ID" 165 | id: sa_id 166 | brand: 167 | name: "SA Brand" 168 | model: 169 | name: "SA Model" 170 | version: 171 | name: "SA Version" 172 | services: 173 | name: "SA Services" 174 | 175 | taixia: 176 | sa_id: 1 177 | 178 | time: 179 | - platform: homeassistant 180 | id: homeassistant_time 181 | -------------------------------------------------------------------------------- /Hitachi/Climate-ESP32.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | devicename: ac-living-room #記得每台要不同名稱避免打架 3 | upper_devicename: "Climate Living Room" 4 | model_name: "RAS-50NK" #可加註冷氣型號 5 | 6 | esphome: 7 | name: $devicename 8 | friendly_name: ${upper_devicename} 9 | comment: ESP32 for $model_name 10 | project: 11 | name: "TaiSEIA-Hitachi.$model_name" 12 | version: "ESP32" 13 | 14 | external_components: 15 | - source: github://tsunglung/taixia@master 16 | components: [ taixia ] 17 | 18 | esp32: 19 | board: wemos_d1_mini32 20 | framework: 21 | type: esp-idf 22 | 23 | wifi: 24 | ssid: !secret wifi_ssid 25 | password: !secret wifi_password 26 | 27 | # Enable fallback hotspot (captive portal) in case wifi connection fails 28 | ap: 29 | ssid: ${devicename} 30 | password: "12345678" 31 | 32 | captive_portal: 33 | 34 | # Enable logging 35 | logger: 36 | baud_rate: 0 # disable serial logging; 37 | # level: VERY_VERBOSE 38 | 39 | # Enable Home Assistant API 40 | api: 41 | 42 | ota: 43 | - platform: esphome #ESPhome版本在2024.6前不需要此行 44 | #web_server: 45 | 46 | uart: 47 | id: uart_taixia 48 | tx_pin: GPIO17 49 | rx_pin: GPIO16 50 | baud_rate: 9600 51 | debug: 52 | direction: BOTH 53 | 54 | 55 | # optional binary sensor to monitor serial connection: 56 | binary_sensor: 57 | - platform: status 58 | name: "Status" 59 | 60 | status_led: 61 | pin: 62 | number: GPIO2 # Blue LED 63 | 64 | climate: 65 | - platform: taixia 66 | name: "Climate" 67 | supported_modes: 68 | - COOL 69 | - HEAT 70 | - DRY 71 | - FAN_ONLY 72 | supported_fan_modes: 73 | - LOW 74 | - MEDIUM 75 | - HIGH 76 | - AUTO 77 | supported_swing_modes: 78 | - VERTICAL 79 | - HORIZONTAL 80 | - BOTH 81 | supported_presets: 82 | - NONE 83 | - BOOST 84 | - ECO 85 | #supported_humidity: True 86 | 87 | button: 88 | - platform: safe_mode 89 | name: Safe Mode Boot 90 | entity_category: diagnostic 91 | - platform: restart 92 | name: "Restart" 93 | - platform: taixia 94 | type: airconditioner 95 | get_info: 96 | name: "Get Info" 97 | 98 | number: 99 | - platform: taixia 100 | type: airconditioner 101 | swing_horizontal_level: 102 | name: "Horizontal Fan Speed" 103 | max_value: 4 104 | sleep_timer: 105 | name: "Sleep Timer" 106 | off_timer: 107 | name: "Off Timer" 108 | on_timer: 109 | name: "On Timer" 110 | 111 | select: 112 | - platform: taixia 113 | type: airconditioner 114 | display_mode: 115 | name: "Display Mode" 116 | 117 | sensor: 118 | - platform: wifi_signal 119 | name: "WiFi Signal" 120 | update_interval: 60s 121 | 122 | - platform: uptime 123 | name: "Uptime" 124 | filters: 125 | - lambda: return x / 3600; 126 | unit_of_measurement: "h" 127 | accuracy_decimals: 1 128 | 129 | - platform: internal_temperature 130 | name: "ESP32 Temperature" 131 | 132 | - platform: taixia 133 | type: airconditioner 134 | temperature_indoor: 135 | name: "Temperature Indoor" 136 | humidity_indoor: 137 | name: "Humidity Indoor" 138 | temperature_outdoor: 139 | name: "Temperature Outdoor" 140 | energy_consumption: 141 | state_class: total_increasing 142 | name: "Energy" 143 | operating_hours: 144 | name: "Operating Hours" 145 | 146 | switch: 147 | - platform: taixia 148 | type: airconditioner 149 | power: 150 | name: "Power Switch" 151 | beeper: 152 | name: "Buzzer" 153 | mildew_proof: 154 | name: "Mildew Proof" 155 | swing_vertical: 156 | name: "Vertical Fan" 157 | 158 | text_sensor: 159 | - platform: version 160 | name: "ESPHome Version" 161 | - platform: wifi_info 162 | ip_address: 163 | name: "IP Address" 164 | - platform: taixia 165 | sa_id: 166 | name: "SA ID" 167 | id: sa_id 168 | brand: 169 | name: "SA Brand" 170 | model: 171 | name: "SA Model" 172 | version: 173 | name: "SA Version" 174 | services: 175 | name: "SA Services" 176 | 177 | taixia: 178 | sa_id: 1 179 | 180 | time: 181 | - platform: homeassistant 182 | id: homeassistant_time 183 | -------------------------------------------------------------------------------- /Hitachi/Dehumidifier-ESP32C3.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | devicename: dehumidifier 3 | upper_devicename: "Dehumidifier" 4 | model_name: "Dehumidifier" 5 | 6 | esphome: 7 | name: $devicename 8 | friendly_name: ${upper_devicename} 9 | comment: ESP32C3 for $model_name 10 | project: 11 | name: "TaiSEIA-Hitachi.$model_name" 12 | version: "ESP32C3" 13 | 14 | esp32: 15 | board: airm2m_core_esp32c3 16 | framework: 17 | type: arduino 18 | 19 | external_components: 20 | - source: github://tsunglung/taixia@master 21 | components: [ taixia ] 22 | #refresh: 0s 23 | 24 | wifi: 25 | ssid: !secret wifi_ssid 26 | password: !secret wifi_password 27 | 28 | # Enable fallback hotspot (captive portal) in case wifi connection fails 29 | ap: 30 | ssid: ${devicename} 31 | password: "12345678" 32 | 33 | captive_portal: 34 | 35 | # Enable logging 36 | logger: 37 | baud_rate: 0 # disable serial logging; 38 | # level: VERY_VERBOSE 39 | 40 | # Enable Home Assistant API 41 | api: 42 | 43 | ota: 44 | - platform: esphome 45 | 46 | web_server: 47 | 48 | uart: 49 | id: uart_taixia 50 | tx_pin: GPIO7 #pin3 (RX to AC) 51 | rx_pin: GPIO6 #pin4 (TX from AC) 52 | baud_rate: 9600 53 | debug: 54 | direction: BOTH 55 | 56 | status_led: 57 | pin: 58 | number: GPIO8 # Blue LED 59 | 60 | # optional binary sensor to monitor serial connection: 61 | binary_sensor: 62 | - platform: status 63 | name: "Status" 64 | - platform: taixia 65 | type: dehumidifier 66 | water_tank_full: 67 | name: "Water Tank Full" 68 | filter_notify: 69 | name: "Filter Notify" 70 | # side_air_flow: 71 | # name: "Side Air Flow" 72 | # defrost: 73 | # name: "Defrost" 74 | 75 | button: 76 | - platform: safe_mode 77 | name: "Safe Mode Boot" 78 | entity_category: diagnostic 79 | - platform: restart 80 | name: "Restart" 81 | - platform: taixia 82 | type: dehumidifier 83 | get_info: 84 | name: "Get Info" 85 | 86 | fan: 87 | - platform: taixia 88 | name: Fan 89 | type: dehumidifier 90 | id: fan_dehumidifier 91 | speed: true 92 | speed_count: 4 93 | preset_modes: 94 | - normal 95 | - home 96 | - boost 97 | - sleep 98 | - eco 99 | 100 | 101 | 102 | number: 103 | - platform: taixia 104 | type: dehumidifier 105 | operating_time: 106 | name: "Operating Time" 107 | relative_humidity: 108 | name: "Relative Humidity" 109 | #fan_level: 110 | # name: "Fan Level" 111 | #sound_mode: 112 | # name: "Sound Mode" 113 | light_level: 114 | name: "Light Level" 115 | 116 | 117 | select: 118 | - platform: taixia 119 | type: dehumidifier 120 | operating_program: 121 | name: "Operation Mode" 122 | options: 123 | - normal 124 | - eco 125 | - home 126 | - boost 127 | - sleep 128 | 129 | sensor: 130 | - platform: wifi_signal 131 | name: "WiFi Signal" 132 | update_interval: 60s 133 | 134 | - platform: uptime 135 | name: "Uptime" 136 | filters: 137 | - lambda: return x / 3600; 138 | unit_of_measurement: "h" 139 | accuracy_decimals: 1 140 | 141 | - platform: internal_temperature 142 | name: "Internal Temperature" 143 | 144 | - platform: taixia 145 | type: dehumidifier 146 | humidity_indoor: 147 | name: "Humidity Indoor" 148 | energy_consumption: 149 | name: "Energy" 150 | error_code: 151 | name: "Error Code" 152 | # pm_2_5: 153 | # name: "PM 2.5" 154 | # odours: 155 | # name: "Odours" 156 | 157 | switch: 158 | - platform: taixia 159 | type: dehumidifier 160 | power: 161 | name: "Power Switch" 162 | #lock: 163 | # name: "Lock" 164 | air_flow_auto: 165 | name: "Auto Air Flow" 166 | #mildew_proof: 167 | # name: "Mildew Proof" 168 | humidity_notify: 169 | name: "Humidity Notify" 170 | beeper: 171 | name: "Beeper" 172 | air_purifier: 173 | name: "Air Purifier" 174 | #pm25_detect: 175 | # name: "PM2.5 Detect" 176 | 177 | 178 | text_sensor: 179 | - platform: version 180 | name: "ESPHome Version" 181 | - platform: wifi_info 182 | ip_address: 183 | name: "IP Address" 184 | - platform: taixia 185 | sa_id: 186 | name: "SA ID" 187 | id: sa_id 188 | brand: 189 | name: "SA Brand" 190 | model: 191 | name: "SA Model" 192 | version: 193 | name: "SA Version" 194 | services: 195 | name: "SA Services" 196 | 197 | taixia: 198 | sa_id: 4 199 | # response_time: 0 200 | 201 | time: 202 | - platform: homeassistant 203 | id: homeassistant_time 204 | -------------------------------------------------------------------------------- /Hitachi/Climate-ESP32C3.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | devicename: climate-h #記得每台要不同名稱避免打架 3 | upper_devicename: "Climate-H" 4 | model_name: "Climate" #可加註冷氣型號 5 | 6 | esphome: 7 | name: $devicename 8 | friendly_name: ${upper_devicename} 9 | comment: ESP32C3 for $model_name 10 | project: 11 | name: "TaiSEIA-Hitachi.$model_name" 12 | version: "ESP32C3" 13 | 14 | external_components: 15 | - source: github://tsunglung/taixia@master 16 | components: [ taixia ] 17 | 18 | esp32: 19 | board: airm2m_core_esp32c3 20 | framework: 21 | type: arduino 22 | 23 | wifi: 24 | ssid: !secret wifi_ssid 25 | password: !secret wifi_password 26 | 27 | # Enable fallback hotspot (captive portal) in case wifi connection fails 28 | ap: 29 | ssid: ${devicename} 30 | password: "12345678" 31 | 32 | captive_portal: 33 | 34 | # Enable logging 35 | logger: 36 | baud_rate: 0 # disable serial logging; 37 | # level: VERY_VERBOSE 38 | 39 | # Enable Home Assistant API 40 | api: 41 | 42 | ota: 43 | - platform: esphome 44 | 45 | web_server: 46 | 47 | uart: 48 | id: uart_taixia 49 | tx_pin: GPIO7 #pin3 (RX to AC) 50 | rx_pin: GPIO6 #pin4 (TX from AC) 51 | baud_rate: 9600 52 | debug: 53 | direction: BOTH 54 | 55 | 56 | # optional binary sensor to monitor serial connection: 57 | binary_sensor: 58 | - platform: status 59 | name: "Status" 60 | 61 | status_led: 62 | pin: 63 | number: GPIO8 # Blue LED 64 | 65 | climate: 66 | - platform: taixia 67 | name: "Climate" 68 | supported_modes: 69 | - COOL 70 | - HEAT 71 | - DRY 72 | - FAN_ONLY 73 | supported_fan_modes: 74 | - LOW 75 | - MEDIUM 76 | - HIGH 77 | - AUTO 78 | supported_swing_modes: 79 | - VERTICAL 80 | - HORIZONTAL 81 | - BOTH 82 | supported_presets: 83 | - NONE 84 | - BOOST 85 | - ECO 86 | - COMFORT 87 | #supported_humidity: True 88 | 89 | button: 90 | - platform: safe_mode 91 | name: Safe Mode Boot 92 | entity_category: diagnostic 93 | - platform: restart 94 | name: "Restart" 95 | - platform: taixia 96 | type: airconditioner 97 | get_info: 98 | name: "Get Info" 99 | operating_hours: 100 | name: "Reset Operating Hours" 101 | energy_reset: 102 | name: "Reset Energy Consumption" 103 | filter_clean_hours: 104 | name: "Reset Filter Clean Hours" 105 | 106 | number: 107 | - platform: taixia 108 | type: airconditioner 109 | sleep_timer: 110 | name: "Sleep Timer" 111 | off_timer: 112 | name: "Off Timer" 113 | on_timer: 114 | name: "On Timer" 115 | 116 | select: 117 | - platform: taixia 118 | type: airconditioner 119 | display_mode: 120 | name: "Display Mode" 121 | swing_horizontal_level: 122 | name: "Swing Horizontal Level" 123 | 124 | sensor: 125 | - platform: wifi_signal 126 | name: "WiFi Signal" 127 | update_interval: 60s 128 | 129 | - platform: uptime 130 | name: "Uptime" 131 | filters: 132 | - lambda: return x / 3600; 133 | unit_of_measurement: "h" 134 | accuracy_decimals: 1 135 | 136 | - platform: internal_temperature 137 | name: "ESP Temperature" 138 | 139 | - platform: taixia 140 | type: airconditioner 141 | temperature_indoor: 142 | name: "Temperature Indoor" 143 | humidity_indoor: 144 | name: "Humidity Indoor" 145 | temperature_outdoor: 146 | name: "Temperature Outdoor" 147 | energy_consumption: 148 | state_class: total_increasing 149 | name: "Energy" 150 | operating_hours: 151 | name: "Operating Hours" 152 | error_code: 153 | name: "Error Code" 154 | filter_clean_hours: 155 | name: "Filter Clean Hours" 156 | 157 | switch: 158 | - platform: taixia 159 | type: airconditioner 160 | power: 161 | name: "Power Switch" 162 | beeper: 163 | name: "Buzzer" 164 | mildew_proof: 165 | name: "Mildew Proof" 166 | swing_vertical: 167 | name: "Swing Vertical" 168 | swing_horizontal: 169 | name: "Swing Horizontal" 170 | frost_wash: 171 | name: "Frost Wash" 172 | 173 | text_sensor: 174 | - platform: version 175 | name: "ESPHome Version" 176 | - platform: wifi_info 177 | ip_address: 178 | name: "IP Address" 179 | - platform: taixia 180 | sa_id: 181 | name: "SA ID" 182 | id: sa_id 183 | brand: 184 | name: "SA Brand" 185 | model: 186 | name: "SA Model" 187 | version: 188 | name: "SA Version" 189 | services: 190 | name: "SA Services" 191 | 192 | taixia: 193 | sa_id: 1 194 | 195 | time: 196 | - platform: homeassistant 197 | id: homeassistant_time 198 | -------------------------------------------------------------------------------- /Hitachi/Dehumidifier-ESP32.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | devicename: dehumidifier 3 | upper_devicename: "Dehumidifier" 4 | model_name: "Dehumidifier" 5 | 6 | esphome: 7 | name: $devicename 8 | friendly_name: ${upper_devicename} 9 | comment: ESP32 for $model_name 10 | project: 11 | name: "TaiSEIA-Hitachi.$model_name" 12 | version: "ESP32" 13 | 14 | esp32: 15 | board: wemos_d1_mini32 16 | framework: 17 | type: arduino 18 | 19 | external_components: 20 | - source: github://tsunglung/taixia@master 21 | components: [ taixia ] 22 | #refresh: 0s 23 | 24 | wifi: 25 | ssid: !secret wifi_ssid 26 | password: !secret wifi_password 27 | 28 | # Enable fallback hotspot (captive portal) in case wifi connection fails 29 | ap: 30 | ssid: ${devicename} 31 | password: "12345678" 32 | 33 | captive_portal: 34 | 35 | # Enable logging 36 | logger: 37 | baud_rate: 0 # disable serial logging; 38 | # level: VERY_VERBOSE 39 | 40 | # Enable Home Assistant API 41 | api: 42 | 43 | ota: 44 | - platform: esphome 45 | 46 | #web_server: 47 | 48 | uart: 49 | id: uart_taixia 50 | tx_pin: GPIO17 #pin3 (RX to AC) 51 | rx_pin: GPIO16 #pin4 (TX from AC) 52 | baud_rate: 9600 53 | debug: 54 | direction: BOTH 55 | 56 | status_led: 57 | pin: 58 | number: GPIO2 # Blue LED 59 | 60 | # optional binary sensor to monitor serial connection: 61 | binary_sensor: 62 | - platform: status 63 | name: "Status" 64 | - platform: taixia 65 | type: dehumidifier 66 | water_tank_full: 67 | name: "Water Tank Full" 68 | filter_notify: 69 | name: "Filter Notify" 70 | # side_air_flow: 71 | # name: "Side Air Flow" 72 | # defrost: 73 | # name: "Defrost" 74 | 75 | button: 76 | - platform: safe_mode 77 | name: "Safe Mode Boot" 78 | entity_category: diagnostic 79 | - platform: restart 80 | name: "Restart" 81 | - platform: taixia 82 | type: dehumidifier 83 | get_info: 84 | name: "Get Info" 85 | 86 | fan: 87 | - platform: taixia 88 | name: Fan 89 | type: dehumidifier 90 | id: fan_dehumidifier 91 | speed: true 92 | speed_count: 4 93 | preset_modes: 94 | - normal 95 | - home 96 | - boost 97 | - sleep 98 | - eco 99 | 100 | 101 | 102 | number: 103 | - platform: taixia 104 | type: dehumidifier 105 | operating_time: 106 | name: "Operating Time" 107 | relative_humidity: 108 | name: "Relative Humidity" 109 | #fan_level: 110 | # name: "Fan Level" 111 | #sound_mode: 112 | # name: "Sound Mode" 113 | light_level: 114 | name: "Light Level" 115 | 116 | 117 | select: 118 | - platform: taixia 119 | type: dehumidifier 120 | operating_program: 121 | name: "Operation Mode" 122 | options: 123 | - normal 124 | - eco 125 | - home 126 | - boost 127 | - sleep 128 | 129 | sensor: 130 | - platform: wifi_signal 131 | name: "WiFi Signal" 132 | update_interval: 60s 133 | 134 | - platform: uptime 135 | name: "Uptime" 136 | filters: 137 | - lambda: return x / 3600; 138 | unit_of_measurement: "h" 139 | accuracy_decimals: 1 140 | 141 | - platform: internal_temperature 142 | name: "Internal Temperature" 143 | 144 | - platform: taixia 145 | type: dehumidifier 146 | humidity_indoor: 147 | name: "Humidity Indoor" 148 | energy_consumption: 149 | state_class: total_increasing 150 | name: "Energy" 151 | error_code: 152 | name: "Error Code" 153 | # pm_2_5: 154 | # name: "PM 2.5" 155 | # odours: 156 | # name: "Odours" 157 | 158 | switch: 159 | - platform: taixia 160 | type: dehumidifier 161 | power: 162 | name: "Power Switch" 163 | #lock: 164 | # name: "Lock" 165 | air_flow_auto: 166 | name: "Auto Air Flow" 167 | #mildew_proof: 168 | # name: "Mildew Proof" 169 | humidity_notify: 170 | name: "Humidity Notify" 171 | beeper: 172 | name: "Beeper" 173 | air_purifier: 174 | name: "Air Purifier" 175 | #pm25_detect: 176 | # name: "PM2.5 Detect" 177 | 178 | 179 | text_sensor: 180 | - platform: version 181 | name: "ESPHome Version" 182 | - platform: wifi_info 183 | ip_address: 184 | name: "IP Address" 185 | - platform: taixia 186 | sa_id: 187 | name: "SA ID" 188 | id: sa_id 189 | brand: 190 | name: "SA Brand" 191 | model: 192 | name: "SA Model" 193 | version: 194 | name: "SA Version" 195 | services: 196 | name: "SA Services" 197 | 198 | taixia: 199 | sa_id: 4 200 | # response_time: 0 201 | 202 | time: 203 | - platform: homeassistant 204 | id: homeassistant_time 205 | --------------------------------------------------------------------------------