-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
[NASA] Power Consumption #6
Comments
Not sure. I think I have seen some power values. So when they exists it should be simple to add them. Give me some time. My desk is currently pretty full. |
Fully understand that, I really love this project. If there would be anything I could help with please let me know. |
Yes you can. You can help tests this and also help improve the documentation. I terms like. Did its understandable, is there anything missing. Adding working devices...etc. |
Ok, as soon as I will receive the necessary hardware I will start with testing. |
Hi, so you are able to see the power consumption? That is great! I should have my HW today, looking forward to test it as well 🙂 |
Ok, I am little bit confused because you wrote
To issue Power Consumption NASA 🙂. BTW how do you read it using Modbus? You have convertor from NASA to Modbus? |
Hu it seems he deleted his posts. A friend of mine uses the WIFI Kit from Samsung and there is a power consumption chart available. It must be possible the read that data. But I did not find the right message for that yet. |
I have WiFi Kit also available, right now I have replaced it with ESPHome with your code, but I could connect both if that would help somehow ... |
Yes that would be a good idea. I did not know If the wifikit simply receives power messages or if it ask for it when the chart is accessed in the app. |
Ok, I will try to connect it today or tomorrow. I have quite complicated access to communication bus so it will take me some time 😄 |
Hi @lanwin, I connected the WiFi Kit back again and checked the power consumption in App, I did so at 16:40:00, here are the logs: esp-samsung-ac-power-consumption.log hopefully it will be helpful. |
Hi @lanwin did you have time to check the the logs? Was there any useful information? If not let me know if I should test something else. |
@bzumik1 currently the log contains only stuff I didnt filter out. There are a lot more messages you can not see. I will add an config property to enable logging soon. |
Oh I see, let me know when the more detailed logging would be available and I will record the logs once again. |
Hi @lanwin, how does it look with the advanced logging? |
Hey @bzumik1 - I'm actually planning on picking this up. Had a NASA 3 head unit installed in my house last week and stumbled across this project. I have a seperate current clamp measuring the AC codenser for real power usage and have found that the Samsung app is under reporting usage by around 60%. 🤞 for PR's coming in the next few weeks. Happy to help this side of the project as I'm pretty excited about exploring this. |
That sounds great. Thank you @sredfern |
Hi @sredfern, how do you progress? Do you need some help with testing? |
It looks awesome! |
Hi @sredfern were you able to read the data and load them to DB? |
Hey @bzumik1 This is a hobby project for me and I've got a whole life outside of this (kids, job, house, life). It's pretty demotivating for someone to just endlessly comment on stuff asking to follow up. If you're so excited about working on it (and have the time to learn) can I suggest you attempt to fix it? I won't speak for the creator of this project but trying to solve the problem yourself is the greatest contribution you can make to this project, not following up every week. |
Hi @sredfern I understand your perspective and apologize if I've bothered you. Unfortunately, due to my limited knowledge, I can't assist with the code, but I've tried to improve the documentation and keep the developed features up to date. My interest was based on a positive approach and supporting the project, not on demotivation. Thank you for your work on the project, and I want to express my gratitude for what you've accomplished so far. |
It's really great that you're excited but the way to keep other people excited isn't to bug them about getting something done. It's not hard to work out how it all works. Reminding people who can do this stuff how little time they have is a sure fire way of people losing interest. I managed to not need my raspberry pi method. Have managed to used the UARTDebug to spam the log with all the data from the RS485 bus.
|
Thanks for updates! |
@sredfern may I ask what program you are using to analyse those logs, it seems quite handy. |
@sredfern thank you for your effort! But I am not sure what you do there. If you want to know how to decode the protocol you simply have to look at https://github.com/lanwin/esphome_samsung_ac/blob/main/components/samsung_ac/nasa.cpp . There is everything you need to know on how to decode the protocol. The point is that the NASA protocol is pretty generic. Its not like the non NASA protocol witch is really specific. The NASA protocol is simply like a way to send generic variables as messages out over the wire. The difficult part is to find witch variable does what. If I wouldn't be able to decompile the source of SNET, it would have take much much longer to come up with this project. But even SNET does not references all variables I receive. |
Hey Steve, Thanks for your help. I've tried the following:
I've extracted out the verbose compile step:
Looks like it might be a problem related to the fact I have a 3 head unit rather than a single one? @bzumik1 - Could you try on your instance and see if it gets an early error? |
What do you mean by 3 head units? |
Can you post your full yaml. I want to try if I get the same error there. |
Hi Steve, By 3 head units I mean I have 3 indoor devices. Below is my configuration. Thank you for your help.
|
When you remove the mode: parts it works. I am not sure why this is. Seems to be some special magic for the MQTT parts behind the scenes. |
Hi Steve, thanks for debugging this with me. I can see some data in MQTT but nothing relating to the test/nasa structure you've made here here I would be expecting to see a test topic. Searching within the structure shows nothing as well. |
But you see incoming data within the log? |
I’m not sure I can. This is the two parts of the logs I think is relevant: I can see all the HA presented values being transmitted to mqtt. I’m unable to see any of the codes and values. FYI, I’m travelling for work so this post isn’t as detailed as I would have liked. Thank you for all your help here Steve. |
@ALL I have chaneged the MQTT stuff. It turns out the integrated MQTT component produced raceconditions when its sends its own data and so a lot of garbage is created in my MQTT server. So I build in an custom mqtt client. You can configure it like so: samsung_ac:
debug_mqtt_host: {ip}
debug_mqtt_port: 1883
debug_mqtt_username: {username}
debug_mqtt_password: {password}
.... |
Hi Steve, back from travel. Great to see your progress with debugging tools. Thanks so much for all the work you have put in here, I really appreciate it. I have been playing around with it on my end and the problem I'm coming up with is the client never connects. What's more strange is if I configure ESPHome's MQTT interface I can see it connect: From yaml
from Mosquitto logs
From there, I can see the usual output you expect from connecting a esphome client to an MQTT instance. However, when I remove the esphome native MQTT configuration and put the configuration into the samsung_ac part of the config:
I get nothing in the log from the Mosquitto logs. I have a question - It seems like in debug_mqtt.cpp you're using USE_ESP8266 that only runs the code if you're running an 8266. Would this execute with an esp32? I'm using a ESP32 so that could be why it won't connect to my MQTT instance. Let me know your thoughts. Thanks |
Hi Steve, thanks for the great work done so far! I am setting up an ESP32 / TTL to RS485 system to monitor my Samsung EHS heatpump (inside AE260RNWSGG/EU outside AE090RXEDGG/EU). I too do not see a connection made to my MQTT instance, probably because in debug_mqtt.cpp a connection is only made if USE_ESP8266 is defined (which clearly is not the case when using an ESP32)? |
Yes it is true. Currently the code only works with ESP8266 cause for ESP32 I need to use another client. Did not tried that yet. |
I added support for ESP32. But I am not able to test it, since I have no ESP32 here. So please try. |
Tested with ESP32 but get compile errors: May be #include "mqtt_client.h" is missing? See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/mqtt.html |
Ah sorry I compiled against the wrong code and did not noticed the build errors. Now it should compile. |
Yes, now works like a charm! tnxs. |
Sounds good! 👍🏻 |
Just updated all my ESP and I now have this in my ESP logs:
Does that means that you will be able to add power consumption sensors?? EDIT:
LVAR_OUT_CONTROL_WATTMETER_1W_1MIN_SUM seems to be the sum of all unit current power consumption (but as I have only 1 indoor unit it is equal to NASA_OUTDOOR_CONTROL_WATTMETER_1UNIT here):
LVAR_OUT_CONTROL_WATTMETER_ALL_UNIT_ACCUM is total energy:
|
Yes I added test code to check if there are coming valid data since @Foxhill67 has provided the corresponding here #28 |
This is currently my configuration for electricity/power related sensors for outdoor unit AJ068TXJ3KG/EU:
|
Hi @lanwin, Is atanasenko way of adding power sensors the official way or do you plan to add power sensors in a future release? |
Thank you so much, I could see the readings in the logs but had no idea how to use them as entities. 2 small issues for anyone copy pasting this: |
Can also confirm the custom sensor config from @mbo18 works perfectly fine with my AJ050TXJ2KG |
I can confirm that all sensors work on my AJ050TXJ2KG. Would it be possible to introduce these sensors “normally” and not as custom sensors to make it easier for others? I also have a question regarding the consumption. In the Samsung app, I see the consumption separated for each indoor device. Is this also available in the NASA protocol, or is it just an estimation in the Samsung app? P.S. now I have noticed that I have exactly same outdoor unit as @Tycorc |
No I would want to add them as controls/sensors natively. First this would allow to use them from non nasa too. And secondly I think this is far more straight forward for most users. But that have to wait. There is just too much other stuff on my desk. |
This is my configuration for AR09TXCAAWKNEU and AR12TXCAAWKNEU:
No voltage or current on these models |
Have anyone find out how to measure independent consumption of internal units? The WiFi kit supports that. Edit: I see I have already ask, sorry for duplicate question |
Will it be possible to add power consumption for NASA devices? Also is there some way how to support you? You are doing great job!
The text was updated successfully, but these errors were encountered: