ESP32-Faikout icon indicating copy to clipboard operation
ESP32-Faikout copied to clipboard

[FEATURE] Support of intelligent eye sensor enabling/disabling

Open nikbyte opened this issue 1 year ago • 30 comments

Daikin hardware FTXA35C2V1B, S21 connector

Is your feature request related to a problem? Please describe. This AC has "intelligent eye" sensor which is not controlled by "sensor" option in faikin. It would be good to figure out why and fix

Describe the solution you'd like Working "sensor" switch in UI.

nikbyte avatar May 26 '24 15:05 nikbyte

If you find the S21 messages, let me know and I'll make it work.

revk avatar May 26 '24 15:05 revk

I enabled messages dump to mqtt and I see no changes in any of registers when I enable/disable this mode from IR remote. :(

nikbyte avatar May 26 '24 15:05 nikbyte

How else I can debug it?

Does faikin publish into mqtt all S21 messages or only part of them? For example, G9 or GD which I don't see in output.

nikbyte avatar May 26 '24 16:05 nikbyte

You can send any S21 to test.

revk avatar May 26 '24 16:05 revk

Just for info.

I tried "0000" (characters), 0x00 0x00 0x00 0x00 and 0xff 0xff 0xff 0xff into all possible D-registers. Tried it with the intelligent eye enabled and with the intelligent eye disabled. It doesn't change the intelligent eye setting. :(

(of course, I ensured that I see my packets in /tx queue and I ensured that I can enable/disable another features this way).

I'm out of ideas yet.

nikbyte avatar May 27 '24 10:05 nikbyte

I can confirm this isn't working for me either with the same model (both FTXA25C2V1B and FTXA35C2V1B). As it happens I was also trying to debug this yesterday and saw nothing relevant changing with "debug": true.

basak avatar May 27 '24 18:05 basak

Hi, I can also confirm it. The sensor is not functioning over the webGUI Daikin FTXM50R2V1B. On the remote there is one button to control comfort and sensor mode. Viber-Bild_2024-07-17_08-00-40-414

  1. press = comfort mode
  2. press = Sensor mode
  3. press comfort + sensor mode
  4. off when I press the remote button from comfort to sensor mode I can see this change Bildschirmfoto 2024-07-17 um 08 12 04 Bildschirmfoto 2024-07-17 um 08 12 13

and this ist the whole massage: {"G1":"13PA","G2":"=;\u0000\u0080","G3":"0\u00FE\u00FE\u0000","G4":"0\u00B0\u00800","G5":"000\u0080","G6":"0004","G7":"00Q@","G8":"0200","GA":"CA30","GB":"0330","GC":"0031","GG":"0D00","GK":"q{51","GM":"5231","GN":"0000","GP":"2A00","GQ":"BB00","GS":"1000","GT":"4000","SH":"542+","SI":"081+","Sa":"561+","SL":"000","Sd":"000","SN":"150+","SM":"640+","SX":"562+","SD":"000"}

geni0602 avatar Jul 17 '24 06:07 geni0602

Comfort mode is working properly Screenshot_2024-07-17-08-21-11-51_40deb401b9ffe8e1df2f1cc5ba480b12

geni0602 avatar Jul 17 '24 06:07 geni0602

I think we have sensor and comfort working now, don't we?

There is more work on S21 being done which may allow more options soon.

revk avatar Aug 18 '24 08:08 revk

@revk no, for AC with intelligent eye it still doesn't work.

nikbyte avatar Aug 18 '24 19:08 nikbyte

Is that not what sensor mode is, or am I getting confused?

revk avatar Aug 19 '24 06:08 revk

No, it's some different mode. I'm not sure it's supported in S21, but let's see, maybe we'll find it sometimes. For me the sensor switch does nothing, just ignored.

nikbyte avatar Aug 19 '24 06:08 nikbyte

OK then I think we need to wait for more S21 research. It is going well.

revk avatar Aug 19 '24 06:08 revk

I am not at home right know, I'll test it next week

geni0602 avatar Aug 19 '24 08:08 geni0602

I have a Emura3 (FTXJ35A2V1BB) which has also the intelligent eye sensor. Maybe the follwing information is helping:

When I activate the Sensor Mode on Faikin it is reducing the LED light of the A/C. Disabling the Sensor Mode is not turning it back on.

The Faikin LED Control Switch is doing nothing.

Sensor mode is different from intelligent eye. Sensor mode can recognize if there are people in the room and then adjust the settings. (used for energy saving) The intelligent eye can "see" where in the room a person is. (Used to "readjust" the airflow away from the person)

Take-Off90 avatar Aug 29 '24 14:08 Take-Off90

I think we need to just wait for some of the reverse engineering that is going on. Then this can be adjusted.

revk avatar Aug 31 '24 04:08 revk

@nikbyte Hello! Still here ?

We have a python script https://github.com/revk/ESP32-Faikin/blob/main/Tools/Simulators/collect_profile.py can you run it on your A/C ? The script will send some commands via mqtt and gather responses. I need the resulting profile which it dumps. Then i'll put this profile into our A/C simulator and see how original Daikin controller handles it.

Sonic-Amiga avatar Sep 22 '24 21:09 Sonic-Amiga

Sent back by email.

nikbyte avatar Sep 22 '24 22:09 nikbyte

Cool news: before falling asleep, i put together a .settings file and run it in the sim. m_dtct=1 !!! My controller recognizes it. By comparing with other profiles i'll be able to figure out settings bits.

Bad news: neither old app nor Onecta support this feature. Without some app, that controls it, we can't figure out control commands.

Sonic-Amiga avatar Sep 22 '24 23:09 Sonic-Amiga

@Sonic-Amiga I can toggle the intelligent eye from my onecta app on the original wifi controller on my new Perfera unit. Can i help somehow? I can confirm that the sensor mode is not doing the same thing on my controller too.

MartB avatar Nov 13 '24 23:11 MartB

protocol 3.40
model 1771
F2 0x3C 0x3B 0x00 0x80
F3 0x30 0x30 0x30 0x00
F4 0x30 0x00 0x80 0x30
FB 0x30 0x34 0x36 0x30
FG 0x30 0x30 0x30 0x30
FK 0x71 0x7B 0x35 0x31
FN 0x30 0x30 0x30 0x30
FP 0x43 0x34 0x30 0x30
FQ 0x31 0x38 0x30 0x30
FR 0x30 0x30 0x30 0x30
FS 0x34 0x30 0x30 0x30
FT 0x31 0x30 0x30 0x30
FV 0x33 0x37 0x83 0x30
M 0x46 0x46 0x46 0x46
V 0x30 0x30 0x38 0x32
VS000M 0x31 0x30 0x37 0x42 0x31 0x30 0x32 0x32 0x4D 0x30 0x30 0x30 0x30 0x30
FY10 0x45 0x41 0x46 0x43 0x39 0x35 0x38 0x44
FY20 0x43 0x44 0x32 0x34
FU00 0x33 0x30 0x30 0x30 0x30 0x33 0x30 0x30 0x30 0x30 0x33 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30
FU02 0xA0 0xA0 0x30 0x31 0x30 0xFF 0xFF 0xFF 0xFF 0x31 0x30 0x3F 0x3C 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
FU04 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x34 0x33 0x30 0x30 0x30 0x30 0x30 0x30 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46 0x46
FU05 0x46 0x54 0x58 0x4D 0x33 0x35 0x41 0x35 0x56 0x31 0x42 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
FU15 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x3A 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
FU25 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
FU35 0x30 0x30 0x30 0x30 0x32 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
FU45 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
FX00 0x45 0x33
FX10 0x31 0x35
FX20 0x30 0x30 0x30 0x30
FX30 0x30 0x30
FX40 0x30 0x34
FX50 0x30 0x30
FX60 0x30 0x30 0x30 0x30
FX70 0x30 0x39 0x31 0x30
FX80 0x30 0x30 0x30 0x30
FX90 0x30 0x30 0x30 0x30
FXA0 0x42 0x37 0x38 0x37
FXB0 0x30 0x30
FXC0 0x30 0x30
FXD0 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30
FXE0 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30
FXF0 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30
FX01 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30
FX11 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30
FX21 0x34 0x30
FX31 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30
FX41 0x30 0x30 0x30 0x30 0x31 0x30 0x30 0x30
FX51 0x30 0x30 0x30 0x30
FX61 0x30 0x30
FX71 0x30 0x30
FX81 0x31 0x30

Profile is here, collected from a FTXM35A5V1B

MartB avatar Nov 14 '24 00:11 MartB

Hello! What kind of wifi adapter does it natively use? Would be very nice to get high-quality pcb photos

Sonic-Amiga avatar Nov 14 '24 06:11 Sonic-Amiga

It's a BRP069C4x, so should be the same one everyone else has. It does look identical but I closed the unit up already and can't reopen it anytime soon. I only have remote access. Firmware of the adapter is 1.31.0

MartB avatar Nov 14 '24 11:11 MartB

Hm, so my C41 should indeed talk to your aircon. Okay, thank you for the profile, I'll try pushing it for some more.

Sonic-Amiga avatar Nov 14 '24 17:11 Sonic-Amiga

@MartB Hi! Keep fighting; and even with your profile it doesn't want to work. After i disconnect it from (simulated) X50 aircon (which works fine) and connect it to (simulated) FTXM35A5V1B with your profile; the adapted disconnects from cloud and sits in "config" mode, responding this to /config/adapter/product_info:

{"rsc":2000,"model_name":"","serial_number":"","region":"eu","device_type":1,"device_kind":"NA"}

So it does not understand what type of device it's connected to; and fails.

I noticed that the adapted also queries for Rz52 and Rz72 commands. Responses from my aircons (both) are '40' and '23' correspondingly. I programmed these, result is the same. In order to complete this research, could you tell (using Faikin) what are responses to these two commands from your A/C ? Maybe it tells something different, and the controller does some identification based on these values.

Sonic-Amiga avatar Nov 24 '24 22:11 Sonic-Amiga

I can toggle the intelligent eye from my onecta app on the original wifi controller on my new Perfera unit. Can i help somehow?

Unfortunately we seem to be stuck with emulating an S21 A/C with this controller; but it's possible to intercept raw traffic. I'm not sure how to use Faikin's snoop mode; never tried/tested it; i instead just connected a PC via a usb-serial adaptor in parallel to one of serial port lines, fired up RealTerm (https://sourceforge.net/projects/realterm/) and simply captured hex dump. @revk Can you help with snoop mode maybe ?

Sonic-Amiga avatar Nov 24 '24 22:11 Sonic-Amiga

Hello everyone! Some news, bad and good. Bad: I still cannot befriend BRP069C41 with S21. It just refuses to talk to cloud and sits in "unknown device connected" state. Good: Thanks to https://github.com/revk/ESP32-Faikin/discussions/220#discussioncomment-11312795 i've downloaded Thai app ("Daikin mobile controller") and reverse engineered it a bit. It mentions at least 3.40 protocol, so i expect BRP072C42 to know some extra features. And from common/basic_info i see HW platform is the same, so i should be able to upgrade my BRP069B41 to 072C42 and get the new functionality

The app refuses to find my BRP069, so i need some tricks and some time. Perhaps i'll write my own firmware download tool.

Sonic-Amiga avatar Nov 25 '24 22:11 Sonic-Amiga

All fixed, all tricks learned. Now i have an upgraded controller, fully recognized by the app. Let's see what new stuff it gives us.

Sonic-Amiga avatar Nov 26 '24 20:11 Sonic-Amiga

Sorry was not really paying attention, is there anything you still require from me?

MartB avatar Dec 06 '24 19:12 MartB

Hi! No, nothing to ask you for. I still cannot replicate your setup, i.e. mt BRP969C41just refuses to connect to the cloud and do anything if i use S21 protocol. It only fully works with X50. I am currently trying a different way. Also not doing a whole lot, no time, sorry.

Sonic-Amiga avatar Dec 06 '24 21:12 Sonic-Amiga