Fujitsu AC (heat pump) integration via ESPHome [ESP32]

Does the IR remote still work in this configuration?

Bonjour Aaron,
une bizarrerie que je rencontre : lorsque j’alimente le montage à partir de l’unité, l’ESP n’arrive plus à se connecter au réseau WIFI; par contre, ac une alim externe plus de problème. Alim en 5volts; j’ai essayé avec le module régulateur de tension : ne fonctionne pas avec; j’ai essayé avec un régulateur 7805, ne fonctionne toujours pas. J’utilise le même ESP32 que miriumar : ESP32 -WROOM-32 d’AZ-Delivery.
Auriez vous une idée ?

What were the mistakes/ addition fields found?

Hi @ll

I used FOSV Board with Atom lite
up to date HA with implimentation of Fuji @dgrnbrg at old_serializer_new_driver

when rebooting via RST-Button I get

[I][app:029]: Running through setup()...
[D][fuji:030]: Fuji initialized
ets Jun  8 2016 00:22:57

rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4

when installing and afterwards directly running, web server starts but after changing anything the whole thing crashes in bootloop till safemode …

[I][app:102]: ESPHome version 2024.2.1 compiled on Feb 29 2024, 22:27:50
[C][wifi:577]: WiFi:
[C][wifi:409]:   Local MAC: D4:D4:DA:85:5F:38
[C][wifi:414]:   SSID: [redacted]
[C][wifi:415]:   IP Address: 172.30.26.50
[C][wifi:417]:   BSSID: [redacted]
[C][wifi:418]:   Hostname: 'office-gl'
[C][wifi:420]:   Signal strength: -75 dB ▂▄▆█
[C][wifi:424]:   Channel: 1
[C][wifi:425]:   Subnet: 255.255.255.0
[C][wifi:426]:   Gateway: 172.30.26.1
[C][wifi:427]:   DNS1: 0.0.0.0
[C][wifi:428]:   DNS2: 0.0.0.0
[C][logger:447]: Logger:
[C][logger:448]:   Level: DEBUG
[C][logger:449]:   Log Baud Rate: 115200
[C][logger:451]:   Hardware UART: UART0
[C][FujitsuClimate:259]: Fujitsu Climate Heat Pump:
[C][FujitsuClimate:260]:   Using uart #2
[C][FujitsuClimate:262]:   Running as master
[C][FujitsuClimate:266]:   TX Pin:GPIO2
[C][FujitsuClimate:267]:   RX Pin:GPIO3
[C][web_server:168]: Web Server:
[C][web_server:169]:   Address: 172.30.26.50:80
[C][mdns:115]: mDNS:
[C][mdns:116]:   Hostname: office-gl
[C][ota:096]: Over-The-Air Updates:
[C][ota:097]:   Address: 172.30.26.50:3232
[C][ota:100]:   Using Password.
[C][ota:103]:   OTA version: 2.
[C][api:139]: API Server:
[C][api:140]:   Address: 172.30.26.50:6053
[C][api:142]:   Using noise encryption: YES
[C][homeassistant.sensor:030]: Homeassistant Sensor 'some_temp_sensor'
[C][homeassistant.sensor:030]:   State Class: ''
[C][homeassistant.sensor:030]:   Unit of Measurement: ''
[C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[C][homeassistant.sensor:031]:   Entity ID: 'sensor.zigbee_sensor'
[D][climate:011]: 'My Fujitsu Heat Pump' - Setting
[D][climate:015]:   Mode: DRY
[D][FujitsuClimate:183]: Fuji setting mode 5
E (30814) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (30814) task_wdt:  - loopTask (CPU 1)
E (30814) task_wdt: Tasks currently running:
E (30814) task_wdt: CPU 0: IDLE
E (30814) task_wdt: CPU 1: IDLE
E (30814) task_wdt: Aborting.

abort() was called at PC 0x400f942c on core 0


Backtrace: 0x4008258e:0x3ffb0850 0x40089235:0x3ffb0870 0x4008f192:0x3ffb0890 0x400f942c:0x3ffb0900 0x40082f19:0x3ffb0920 0x40159d27:0x3ffb9c80 0x400f9b76:0x3ffb9ca0 0x4008a60c:0x3ffb9cc0




ELF file SHA256: dd9aa5a1b46c7e88

Rebooting...

anyone else experienced that ?

cheers

ok so this is solved now … only using esp32dev und arduino … now the next thing is, that the unit is constantly going into error mode :frowning: MOdel is AUYF12LAL

Thanks @rabbit-aaron for this project, great work!

I’ve just set this up as a primary controller so i’ve made the required change in FujitsuClimate.cpp from true to false.

It connects OK and reports values back from the unit back to home assistant (temperature, mode, fan etc), however I am unable to send commands. Whenever I try and send a command e.g. change temperature or mode, it reverts back to the previous value after a few seconds.

During troubleshooting I uncommented #define DEBUG_FUJI from FujitsuHeatPump.cpp and when I installed that version all of a sudden I was able to control the unit!

Has anyone run into this before? There seems to be quite a bit of activity in the logs with this configuration and i’m not sure if it will be ok to leave it like this long-term.

try inc / dec by only 1…this works … same situation here :wink:

Hi everyone. I´m trying to integrate my General heat pump, I would say same code used as Fujitsu, but I´m not receiving any data in HA.

I have compiled the yaml file correctly to the ESP32 and I have been able to add the ESP to HA but there is no data.

Reviewing the ESPHome logs there is no data or task running only information about how the ESPHome is connected to HA:

INFO ESPHome 2024.2.2
INFO Reading configuration /config/esphome/fujitsu.yaml…
INFO Starting log output from 192.168.1.109 using esphome API
INFO Successfully connected to fujitsu @ 192.168.1.109 in 0.268s
INFO Successful handshake with fujitsu @ 192.168.1.109 in 0.103s
[00:37:20][I][app:102]: ESPHome version 2024.2.2 compiled on Mar 13 2024, 21:58:32
[00:37:20][C][wifi:577]: WiFi:
[00:37:20][C][wifi:409]: Local MAC: A0:A3:B3:2D:09:B0
[00:37:20][C][wifi:414]: SSID: [redacted]
[00:37:20][C][wifi:415]: IP Address: 192.168.1.109
[00:37:20][C][wifi:417]: BSSID: [redacted]
[00:37:20][C][wifi:418]: Hostname: ‘fujitsu’
[00:37:20][C][wifi:420]: Signal strength: -49 dB ▂▄▆█
[00:37:20][C][wifi:424]: Channel: 6
[00:37:20][C][wifi:425]: Subnet: 255.255.255.0
[00:37:20][C][wifi:426]: Gateway: 192.168.1.1
[00:37:20][C][wifi:427]: DNS1: 80.58.61.254
[00:37:20][C][wifi:428]: DNS2: 80.58.61.250
[00:37:20][C][logger:447]: Logger:
[00:37:20][C][logger:448]: Level: DEBUG
[00:37:20][C][logger:449]: Log Baud Rate: 115200
[00:37:20][C][logger:451]: Hardware UART: UART0
[00:37:20][C][captive_portal:088]: Captive Portal:
[00:37:20][C][mdns:115]: mDNS:
[00:37:20][C][mdns:116]: Hostname: fujitsu
[00:37:20][C][ota:096]: Over-The-Air Updates:
[00:37:20][C][ota:097]: Address: fujitsu.local:3232
[00:37:20][C][ota:100]: Using Password.
[00:37:20][C][ota:103]: OTA version: 2.
[00:37:20][C][api:139]: API Server:
[00:37:20][C][api:140]: Address: fujitsu.local:6053
[00:37:20][C][api:142]: Using noise encryption: YES

I have compiled and reviewed the code several times, but without being able to move forward.

I have also checked all the wiring and it is correct. The RX and TX outputs are connected to GPI 16 and 17 but still the same.

Can anyone tell me why not a single piece of data appears and EspHome doesn’t seem to start any task?

Anyone had any luck figuring out zones yet? I haven’t been able to properly use mine yet without zone functionality.

1 Like

not yet @Verpz I’m also keen on finding out how to get zones working.

Hi @Omniflux did you ever have any luck with zone control? I have the UTY-CDPXZC too.

1 Like

Hey Guys,
Great project, I have this working with one of the original dual-core ESP32 development boards. Been running for a week flawlessly in Home Assistant.

I have a second unit that I would like to integrate into home assistant using an ESP32 S3. Could someone please advise how to define the GPIO pins for the second serial port?

Thanks in advance.

Marty

@guvnor, thanks for confirming this on a ASTG18LVCC. Any chance you might have the part number handy for the plug you’ve used in the ‘remocon’ socket? I’m looking to do the same for my similar model unit - ASTA30LCC. Cheers

After a lot of googling, I’ve ordered JST XA 2.5mm pitch cables which look to be the ones for the CNC01 socket. If they arrive before we get confirmation from guvnor I’ll update here.

1 Like

In Australia you can buy the Gen II Airware Next USB interface for $200AUD. It is very solid. I reckon you are far better off with one of those than going down. an ESP route if you don’t need to do it. I have several clients with these Fujitsu’s where there is no option but this one.

@guvnor as well. You know that you can control the ASTG series with a Fujitsu Airware Next? You can get one on eBay in Oz with the cable that plugs into the indoor board for $250. If you are in Oz the guy is in SA and seems very reliable I have popped lots of these together. I guess that downside is that by default it talks to Sensible. I have not debugged what port it talking on yet to just run it directly.

@jdymond Confirming the JST XA 2.5mm is the correct plug. I had to buy 10 so if you DM me an address I can post one to you.

1 Like

Can someone who knows what they’re doing confirm or deny if this layout matches the original diagram ok? ESP32 boots fine but I’m not receiving any data.

The quiet mode is working very well now (after editing appropriate files) !

But is it possible change icons of fan mode somewhere?

Snímek obrazovky 2024-06-06 230853

I have some questions… can you help me?
Using this allows to continue using the IR remote?
Which is the connector in the unit board? Which is the pinout of this connector? I can’t see it in the picture…
Did you change the code to register as primary controller?
Thanks in advance!