Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support of intelligent eye sensor enabling/disabling #342

Open
nikbyte opened this issue May 26, 2024 · 30 comments
Open

[FEATURE] Support of intelligent eye sensor enabling/disabling #342

nikbyte opened this issue May 26, 2024 · 30 comments
Assignees

Comments

@nikbyte
Copy link

nikbyte commented May 26, 2024

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.

@revk
Copy link
Owner

revk commented May 26, 2024

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

@nikbyte
Copy link
Author

nikbyte commented May 26, 2024

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
Copy link
Author

nikbyte commented May 26, 2024

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.

@revk
Copy link
Owner

revk commented May 26, 2024

You can send any S21 to test.

@nikbyte
Copy link
Author

nikbyte commented May 27, 2024

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.

@basak
Copy link
Contributor

basak commented May 27, 2024

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.

@geni0602
Copy link

geni0602 commented Jul 17, 2024

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
Copy link

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

@revk
Copy link
Owner

revk commented Aug 18, 2024

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 revk closed this as completed Aug 18, 2024
@nikbyte
Copy link
Author

nikbyte commented Aug 18, 2024

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

@revk revk reopened this Aug 19, 2024
@revk
Copy link
Owner

revk commented Aug 19, 2024

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

@nikbyte
Copy link
Author

nikbyte commented Aug 19, 2024

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.

@revk
Copy link
Owner

revk commented Aug 19, 2024

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

@geni0602
Copy link

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

@Take-Off90
Copy link

Take-Off90 commented Aug 29, 2024

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)

@revk
Copy link
Owner

revk commented Aug 31, 2024

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

@Sonic-Amiga
Copy link
Contributor

@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.

@nikbyte
Copy link
Author

nikbyte commented Sep 22, 2024

Sent back by email.

@Sonic-Amiga
Copy link
Contributor

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.

@MartB
Copy link

MartB commented Nov 13, 2024

@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
Copy link

MartB commented Nov 14, 2024

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

@Sonic-Amiga
Copy link
Contributor

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

@MartB
Copy link

MartB commented Nov 14, 2024 via email

@Sonic-Amiga
Copy link
Contributor

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
Copy link
Contributor

Sonic-Amiga commented Nov 24, 2024

@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
Copy link
Contributor

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
Copy link
Contributor

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 #220 (reply in thread) 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
Copy link
Contributor

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.

@MartB
Copy link

MartB commented Dec 6, 2024

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

@Sonic-Amiga
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants