Open bzumik1 opened 1 year ago
Yes, now works like a charm! tnxs.
@lanwin - Can confirm working like a charm. Have started dumping the data for analysis.
FYI I have a fork I'm exploring to also add in the device from and to as part of the topic in MQTT. You can check it out here. If I find it useful I'll create a PR to this project.
Sounds good! 👍🏻
Just updated all my ESP and I now have this in my ESP logs:
[17:21:49][W][samsung_ac:560]: s:10.00.00 d:b0.00.ff NASA_OUTDOOR_CONTROL_WATTMETER_1UNIT 30.000000
[17:21:49][W][samsung_ac:554]: s:10.00.00 d:b0.00.ff LVAR_OUT_CONTROL_WATTMETER_1W_1MIN_SUM 30.000000
[17:21:49][W][samsung_ac:547]: s:10.00.00 d:b0.00.ff LVAR_OUT_CONTROL_WATTMETER_ALL_UNIT_ACCUM 1589.247000kwh
Does that means that you will be able to add power consumption sensors?? Would be really nice.
EDIT: NASA_OUTDOOR_CONTROL_WATTMETER_1UNIT seems to be outdoor unit current power consumption:
state_class: measurement
unit_of_measurement: W
device_class: power
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):
state_class: measurement
unit_of_measurement: W
device_class: power
LVAR_OUT_CONTROL_WATTMETER_ALL_UNIT_ACCUM is total energy:
state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
``
Yes I added test code to check if there are coming valid data since @Foxhill67 has provided the corresponding here https://github.com/lanwin/esphome_samsung_ac/issues/28
This is currently my configuration for electricity/power related sensors for outdoor unit AJ068TXJ3KG/EU:
devices:
- address: "10.00.00"
outdoor_temperature:
name: AC Outdoor temperature
custom_sensor:
- name: AC Voltage
message: 0x24fc
device_class: voltage
state_class: measurement
unit_of_measurement: V
- name: AC Current
message: 0x8217
device_class: current
state_class: measurement
unit_of_measurement: A
accuracy_decimals: 1
filters:
- multiply: 0.1
- name: AC Power
message: 0x8413
device_class: energy
state_class: measurement
unit_of_measurement: W
- name: AC Energy
message: 0x8414
device_class: energy
state_class: total_increasing
unit_of_measurement: KWh
accuracy_decimals: 1
filters:
- multiply: 0.001
Hi @lanwin,
Is atanasenko way of adding power sensors the official way or do you plan to add power sensors in a future release? Also do you plan to do another stable release shortly? There does not seems to be issue with the current code
This is currently my configuration for electricity/power related sensors for outdoor unit AJ068TXJ3KG/EU:
devices: - address: "10.00.00" outdoor_temperature: name: AC Outdoor temperature custom_sensor: - name: AC Voltage message: 0x24fc device_class: voltage state_class: measurement unit_of_measurement: V - name: AC Current message: 0x8217 device_class: current state_class: measurement unit_of_measurement: A accuracy_decimals: 1 filters: - multiply: 0.1 - name: AC Power message: 0x8413 device_class: energy state_class: measurement unit_of_measurement: W - name: AC Energy message: 0x8414 device_class: energy state_class: total_increasing unit_of_measurement: KWh accuracy_decimals: 1 filters: - multiply: 0.001
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: AC Power should be device_class: power AC energy unit_of_measurement needs to be kWh instead of KWh
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
Hi @lanwin,
Is atanasenko way of adding power sensors the official way or do you plan to add power sensors in a future release? Also do you plan to do another stable release shortly? There does not seems to be issue with the current code
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:
samsung_ac:
capabilities:
vertical_swing: true
horizontal_swing: true
presets:
quiet: true
windfree: true
fast: true
devices:
- address: "20.00.00"
climate:
name: None
- address: "10.00.00"
outdoor_temperature:
name: "Outdoor temperature"
custom_sensor:
- name: Power
message: 0x8413
device_class: power
state_class: measurement
unit_of_measurement: W
- name: Energy
message: 0x8414
device_class: energy
state_class: total_increasing
unit_of_measurement: kWh
accuracy_decimals: 2
filters:
- multiply: 0.001
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!