lanwin / esphome_samsung_ac

Provides an ESPHome component for Samsung air conditioners. It allows you to watch and control your devices via a home automation system. And is designed to be attached to the F1,F2 communication bus between the devices.
78 stars 26 forks source link

[Non-NASA] Help with Ducted system #1

Closed buzurk26 closed 6 months ago

buzurk26 commented 1 year ago

Hi,

Great project! very keen to get this working with my AC

I have a non-Nasa ducted system that previously had the wireless controller on the f1/f2 terminals, but it has stopped working of late and Samsung don't sell replacements image

I got some esp32s and the rs485 ttls, I'm a bit of a noob but wondering how i could get started with your code on my non-nasa setup?

Only functions ill need are

@lanwin

lanwin commented 11 months ago

Good evening, I have this heat pump from Samsung. I don't know which category it falls into, NASA or NO-NASA. Or if it is likely that this integrity could work when it is finished. Thank you Zoul AE160JNYDGH

It seems Samsung uses only this two protocols for everything. So when its a new devices I would bet it uses NASA internally.

lanwin commented 11 months ago

Highly interested in this project, thanks for the work done so far! I have the AE090RXEDGG/EU + AE260RNWSGG/EU heat pump combination from Samsung. According to the manual, the optional wifi module kit MIM H04EN can be installed. This kit is NASA compliant. But the kit is expensive and only accessible via Samsung Smartthings app. I am very much interested in this ESPHOME project to directly connect my heat pump to Home Assistant. Do you think it will be possible to at least read all interesting information (temperatures, power usage, error codes, etc)?

I think this should work. My devices are from mid 2022 and I can control them via Home Assistant now. Temperatures just work fine for now. Power usage and error codes should be possible, but I did not yet invested time to integrate them.

Currently I am trying to write the code to send messages to NON NASA devices to be able to control them as well. The old protocol requires a lot bit juggling and is not that straight forward as the new one.

buzurk26 commented 11 months ago

Hi Mate, Hope your well just wanted to see if you had time to work on this any further? thanks

lanwin commented 11 months ago

@buzurk26 I need your help. Can you generate some data samples. Your installation still logs the raw messages right?

I need examples for the following values.

fanspeed, bladeswing, mode

Make some examples where you write down what you want to set, then change the values to that and copy the messages 0-5sec after you made the change (if you change all three values measure after the last one).

Then turn off the device and do the same. Even when powered off. The system should send a messages with the latest values and power off setting.

And repeat that with some different values. What values do you set does not matter. But they should be different for each measure.

I need that to develop the code for message decoding and encoding. The old protocol is pretty raw. I need to read some values of different bits and since I have not enough test data its not that simple to get the code right.

buzurk26 commented 11 months ago

Hi There,

Thanks for that and more than happy to help! I still have it running and all the codes are cycling so assume all is working where we last left off

What i am wanting to read and control is

I did briefly switch over the matthias code -https://github.com/matthias882/some_esphome_components and also recorded what works and what does not.

Here is my code in ESPhome when testing his https://pastebin.com/JQSZmQns

Found that the ESP web screen looks like this, status's update etc image

I noted down what occured when i changed things on the panel

Top row fan headings are what the panel was set to in regards to fan speed, the numbers are what the ESPhome web page saw image

Temps, output power etc all seems to work, change values etc

The reason i done this was to see if there was anything already in place in that code that you could use (might save extra work) but i dont know if your code is different (im not a programmer sorry)

Switching back to your code now, so do i need to record the logs of data that are shown after performing each function??

lanwin commented 11 months ago

Ah sorry. What I need for each value is this messages from the log:

[11:48:41][W][command:042]: 00 C8 40 3200c84020000000408900472634

buzurk26 commented 11 months ago

No worries can get that, just wanted to let you know what was already working in between your code and mattias code base, im sure you can integrate the working parts in to save rework

So you want me to perform each function on the panel and capture the code that is logged after that???

lanwin commented 11 months ago

Not on the panel. I mean directly control your AC via remote

buzurk26 commented 11 months ago

I dont have a remote sorry, Only have the touch panel that does all the control, this is what i have image

ITs a ducted system not a wall mount one with remote

buzurk26 commented 11 months ago

Think of the panel as my remote in the context of this system :)

Ignore the zone buttons, these will be managed by another method

lanwin commented 11 months ago

Think of the panel as my remote in the context of this system :)

Right :D

buzurk26 commented 11 months ago

So if i perform an action on the panel (remote) then the esp should show a log of code within 5 seconds of that action and you want me to note that?

lanwin commented 11 months ago

Right and I need the exact values there where present wenn these messages appear so I can compare the values I get out wenn decoding the message.

buzurk26 commented 11 months ago

Still working through this sorry its really hard to lay it out as there are so many combinations

Can i exclude what is already working in mattias code as posted in my last posts (with the screenshots above)

Do you have a good way to map this out so its readable?

lanwin commented 11 months ago

Still working through this sorry its really hard to lay it out as there are so many combinations

I dont need all combinations. A few examples with different values are ok.

Can i exclude what is already working in mattias code as posted in my last posts (with the screenshots above)

No. He uses a different programming language. So I still need test data to verify it works.

buzurk26 commented 11 months ago

Hopefully this is what you need, thanks again :)

AC-Output.pdf

lanwin commented 11 months ago

Ok that helps. Whats now missing is bladeswing (modes). Could you create a sample for each mode your device has?

buzurk26 commented 11 months ago

Awesome

Not sure what you mean by bladeswing? being a ducted system it does not have blade swing (i think only wall mount units have that)

The only options i have on my panel (remote) is

Or do you mean you want me to cycle through operating modes (Auto, Cool, Fan, Dry, Heat) and capture the codes for them?

lanwin commented 11 months ago

Ah...a ducted system is one witch is build into the wall right? Did not noticed that.

Nono I mean the blade swinging from the mounted units. But since you dont have one, I leave that skip that for now.

bzumik1 commented 11 months ago

Highly interested in this project, thanks for the work done so far! I have the AE090RXEDGG/EU + AE260RNWSGG/EU heat pump combination from Samsung. According to the manual, the optional wifi module kit MIM H04EN can be installed. This kit is NASA compliant. But the kit is expensive and only accessible via Samsung Smartthings app. I am very much interested in this ESPHOME project to directly connect my heat pump to Home Assistant. Do you think it will be possible to at least read all interesting information (temperatures, power usage, error codes, etc)?

Hi, I have exactly this WiFi kit, but I would like to get it local so I am also trying to get this working with esphome. I have ordered the necessary equipment and hopefully I will be able to start testing it soon.

lanwin commented 11 months ago

@buzurk26 can you please update component and check if you toggle the Power Button that changes anything? It should power on/off and should change target temperature to 18° and everything to auto.

grafik

I added test code that should send a message. But I am not sure if its the right one. So maybe nothing happens.

buzurk26 commented 11 months ago

@lanwin Will test now and report back shortly, thank you :)

buzurk26 commented 11 months ago

@lanwin Nothing is happening sorry

I turn it on here image

It looks like it trys because every 5 seconds as the target temp, set temp and the slider changes then reverts back to the above screenshot image I think the previous version of the code, the target temp reading, set temp reading and the on/off reading was working, now its coming annd going every 5 secs

buzurk26 commented 11 months ago

Here is a video, you can see how set temp and target temp and the slider read every 5 secs https://youtu.be/NReeKVqpEfo

lanwin commented 11 months ago

Well that is expected. It show the data I send out and then the data from the devices comes and overrides it.

Sadly that did not work to control the devices.

Did your remotes (wall) can control only one device? Or is it able to control all?

buzurk26 commented 11 months ago

Well that is expected. It show the data I send out and then the data from the devices comes and overrides it.

Sadly that did not work to control the devices.

Did your remotes (wall) can control only one device? Or is it able to control all?

Ah OK, No worries just noticed it as something different but if you expect that to occur then all good :)

The wall panel controls a single system which is the whole house system, it has an indoor unit and outdoor unit

lanwin commented 11 months ago

Can you send me the address list you got in the log?

buzurk26 commented 11 months ago

I assume you mean the logs in the web ui, i will get some fresh ones now

See here - logs_esp32-hvac-test_logs (3).txt

Tried to turn on via esp at the following timestamps in the log ON 23:03:15 - OFF 23:03:20

lanwin commented 11 months ago

Can you update and try again?

buzurk26 commented 11 months ago

Closer :) It didn't do anything at first but then i tried again

lanwin commented 11 months ago

Well that are good news and meas controlling that stuff works. Now we need to find out the details.

First I only send a message when power is changed. So the other controls are do nothing. That is why they reset.

Can you tell me to what target temp switched. It should be 18...but I am not sure if the code works here.

buzurk26 commented 11 months ago

Yes, very good progress. Thank you. It turns on to the last known set temp, I tried a few different ones on the panel and powered the system back on via the ESP

So now it dosnt go to 19 degrees but it does alway set the operating mode to AUTO

lanwin commented 11 months ago

Could you check again

buzurk26 commented 11 months ago

Do i reinstall first?

buzurk26 commented 11 months ago

Do you have discord or anything, wondering if its easier to chat somewhere? Understand if you prefer to keep it here

buzurk26 commented 11 months ago

Nothing now, and looks to have locked me own

the wall panel shows the temp still but no touch actions are working and a new icon is on the top right saying "CENTRAL" which from what i read is when you have a central controller, like a building management system

I cant turn the AC on or off

buzurk26 commented 11 months ago

Ok just done a full power reset of the air con without the esp connected and its come back - phew!

lanwin commented 11 months ago

hm ok pew.....I set a property samsung s-net software called individual...It seems this did what you call central.

I reset that property. Can you check what happens now and what target temp you get?

lanwin commented 11 months ago

After an update

buzurk26 commented 11 months ago

Ah cool yeah that must be what it is, i have the manual and it talks a bit about enabling that for things

ill update now and check

buzurk26 commented 11 months ago

getting no power on/off control now

buzurk26 commented 11 months ago

Interesting tho, i powered the AC on via wall panel, then tried to power it off via the ESP and it powered it off, so thats working now? but now power on from the esp

lanwin commented 11 months ago

Can update again an check logs?

If you power off the log should show "value == false". If you power on there should be "value == true".

And what value did the target temperature get?

buzurk26 commented 11 months ago

No luck sorry. the ESP cant power the AC on or off

if i power the AC on and off in the panel i dont see vale ==

logs https://pastebin.com/Pe22jL0E

lanwin commented 11 months ago

Can you reinstall and try again? I added some more logging.

And you should wait until you saw "known addresses: 00, c8"

buzurk26 commented 11 months ago

Yep, done and waited for "known addresses: 00, c8", no luck tho, not powering it ac on

logs https://pastebin.com/wcecPPXG

lanwin commented 11 months ago

Can you post your yaml file? You have "registered devices: 00" in your logs. I am not sure, but I think 00 is the outdoor unit.

buzurk26 commented 11 months ago

Sure, see https://pastebin.com/ydgQQZE7

lanwin commented 11 months ago

Can you change address: "00" to address: "c8" and check again the power button

buzurk26 commented 11 months ago

that didn't work unfortunately.