Open flaviut opened 2 years ago
Hey, it's cool to see other people working with this hardware too! I'd be happy to help out however I can.
What are the indications for "Power data" used for in the accounts?
The power readings published come from the power data section of the message. I'm not sure if there's any difference between:
At some point during development, there might have been some attempt to capture real vs. apparent power? I'm not really sure.
When I take the bytes of the data for "Current data" in the file "emporia_vue.cpp" it is commented that they are not multiplied by a factor,
Can you show me where you see that? Here is the latest version of that file: https://github.com/flaviut/esphome/blob/emporia-vue-2022.4.0/esphome/components/emporia_vue/emporia_vue.cpp
But that's right, you do need to do that multiplication. And 0.022 isn't always the right coefficient, the right coefficient depends on which clamps are attached to which phases, in a way I don't understand: https://github.com/flaviut/emporia-vue2-reversing/issues/1#issuecomment-980827291
I'm writing a driver for Berry's Emporia32
I'm not familiar with that, but if it's not a typo, I'd appreciate a link!
Thanks for the quick reply. I will be happy to help each other.
I'm not familiar with that, but if it's not a typo, I'd appreciate a link!
I apologize for what I wrote :)! But it came from rushing. I wanted to say that I am writing a driver for Tasmota32 on Berry (console) for the device. And if all goes well I will also write a "C" driver.
At some point during development, there might have been some attempt to capture real vs. apparent power? I'm not really sure.
I want to understand from the answer that this data is currently unnecessary. I can ignore them.
Can you show me where you see that? Here is the latest version of that file: https://github.com/flaviut/esphome/blob/emporia-vue-2022.4.0/esphome/components/emporia_vue/emporia_vue.cpp
We are talking about the data of the reports for "Current data" = "I".
if (this-> currentsensor) { uint16_t raw_current = sensor_reading.current [this-> inputport]; // we don't know how this sensor is calibrated by the original firmware this-> currentsensor -> publish_state (raw_current); }
You don't calibrate it at all, at least here. So I ask how do you get the values for "I" in "Amperes" to calculate consumption? I tested and determined that for my device I have to adjust it with a factor of 0.0022 to get the readings in amperes. But also the values float a lot. Is that right with you?
I wanted to say that I am writing a driver for Tasmota32 on Berry (console) for the device. And if all goes well I will also write a "C" driver.
Ah, I see! I didn't know that Tasmota had Berry, that's very cool.
You don't calibrate it at all, at least here.
I see what you mean. I'm remembering more now.
This is not a sensor that I suggest people use. People have tried to make sense of the current reading, but have eventually just given up: https://gist.github.com/flaviut/93a1212c7b165c7674693a45ad52c512?permalink_comment_id=4062299#gistcomment-4062299
It exists in the code, but is not documented.
I want to understand from the answer that this data is currently unnecessary. I can ignore them.
For the above reason, I'd suggest the opposite conclusion.
Ignore the current readings, and just use the power readings.
I tested and determined that for my device I have to adjust it with a factor of 0.0022 to get the readings in amperes. But also the values float a lot. Is that right with you?
I don't recall investigating how this works, so unfortunately I can't help here :(
If you experiment and figure it out, please share and I'll update my code.
Thanks for your time. I do not use in HA ESPHome. I'm using Tasmota for now. I will continue to test. Then I will share my result and everything. :)
Any update on this? I haven't seen a native emporia driver come up in the Tasmota PRs, but did you get to a good point with the berry driver?
Hello,
Any update? There is a Vue 3 version availabe and it is working with ESPHome. Is it possible to migrate to Tasmota?
Regards.
Copied from https://github.com/flaviut/emporia-vue2-reversing/issues/1#issuecomment-1144194714