-
Notifications
You must be signed in to change notification settings - Fork 62
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
the S21 Protocol has Power Meter ? #101
Comments
Do you have examples of the exact messages. If we can work out what they are, I am happy to add that. |
FM : 02.47.4D.37.33.31.32.61.03 FM : hex(2137) = 8503 |
I am not sure what you mean by "meter" and "pulse" to be honest - what are their units? |
what request are you using to get these values? |
I am not sure how useful a cumulative kWh is? It would help to know what FP and FM are. How/when are they ever reset I wonder. |
I know it in the Home Assistant first time. |
This is why we need a project like ES3P32-Faikin, oh my. |
This would be very useful for my use case, I was thinking of adding Current transformers on the AC feed, but if the air con can tell me that would be very useful. I'm trying to prioritize solar consumption |
OK do we know the units of the component parts yet? |
That pin numbering is backwards, but nice pictures. |
Just the numbering, pin 1 is the 5V. I am also not sure how this image relates to the topic of this issue. |
It's pretty standard actually to have some kind of lifetime summation as the metric for energy usage, instead of having the accuracy of that metric depend on how often the server polls the device. Most ZigBee devices that measure electricity will report lifetime energy use over the smart power metering cluster as Likewise, Home Assistant doesn't use power sensors directly for its energy monitoring feature, and you need a virtual sensor that calculates the integration of that power reading if cumulative energy isn't reported. |
OK so are they cumulative somehow, what are they and what units? |
OP said they matched the readings on their power meter (in watt-hours) pretty closely when multiplied together, though I guess further testing would be needed to know what either factor represents and what that power consumption covers and excludes (like whether the values always match on multi-zone systems). I have yet to recieve and install my own Faikin dongles, though, so I can't help with that right now. |
Ok "when multiplied together". So what are the two values exactly? |
Can I query these values through MQTT as a custom command? I should be able to compare the values to a smart meter in the board to confirm if it
|
There are debug messages to allow you to send any S21 command and see replies. The manual should cover it all. |
Do these look like valid custom commands/payloads? |
Ok back to what is asked before. What are "meter" and "pulse" and what units are they? |
@revk : I believe that was OP trying to figure out what the values mean based on the ASCII letters, but I don't think they mean anything. EDIT: As for the units, that's not going to be easy to describe without some additionnal datapoints, which I'm not able to collect yet. I was hoping someone, maybe 44616E, would capture some of those so that we have more data to work with and figure out what they both mean. |
Oh, I only just found this page, I now understand that G is for reply payloads and that the ASCII transcriptions I wrote down are not valid requests, but actually responses. Assuming OP is right (would need more testing to find out whether or not he is) and these are integer values transmitted as hexadecimal ASCII strings (which I guess could make sense for unbounded multi-byte values?), the return value Should I understand that all one needs to run to get these values is |
Maybe, maybe |
@44616E: If you have a chance to test this on your end, you can use these commands and see if the readings match with your own measurements.
|
OK, now makes more sense. I suspect GP is telling you that it meters pulses every 125Wh and is a fixed value. I suspect GM is a meter telling you how many GP sized pulses. OK, now to work out how best to report it, and handle meter wrap around. Anyone know the HA config that would make sense for a "meter" like this? |
I have made a beta with a No HA config yet, let me know what HA config it would need? |
Great - just installed it and getting values. I have had some sensors that report Wh and imported it through the Utility Meter integration: https://www.home-assistant.io/integrations/utility_meter/ This can then be added to the energy dashboard to see time based stats. |
I don't think these power measurements have anything to do with wifi adapters. I suspect its for building management systems like used in Hotels and offices etc. The daikin app doesn't show power usage.
|
@44616E: There are also other unknown fields under the F command that could be involved in power readings:
There might be other values involved in the energy calculations among these, and possibly a real time estimation of power consumption. I'm also guessing state indicators like "Stand by for defrost/hot start" and "Changeover controlled by the master indoor unit" like we see on the more advanced wired thermostats might show up. |
I am happy to help testing various commands, can someone explain to me how to read / convert the results? as far as I understood they are hex, but also reversed? |
Well, correct me if I am wrong, but some values need to be converted to decimal, others are fine as hex, but its always inverted. I wonder if FM / GM is not simply counting up the kWh, in my case the value is 13123 (hex: 3343), which could be 1312,3 kWh and which is incrementing by 0.1 kWh as seen here. This would match the ONECTA App, where 0.1 kWh is the smallest unit. |
I am thinking the same, my values look very close if we use a 0.1 multiplier. Will test some more tonight. |
"The ‘Outdoor compressor Energy consumption’ and ‘Outdoor compressor Estimated power consumption’ sensors are updated every time 100 Wh are consumed by all different operating modes summed together." https://www.home-assistant.io/integrations/daikin#sensor So seems the multiplier is fixed. Do I think GP is not required. The estimated power consumption would be handy. |
The Daikin integration in HA has wrong power consumption value with my aircon. |
OK so what is GP? This is why is asked the units in the first place! I can change to 100Wh multiplier, no problem. But is GP useful? Or shall we ignore it? |
I think the original assumption was just letter based, P = pulse, M = Meter - doesn't seem to be necessary a proof that both are necessary? Anyway, I have been reading the new Daikin Cloud API I came across this re power consumption, which is exactly the way data is displayed on the ONECTA App, too and I think it it was displayed in the local api, too. I just disconnected my Daikin WiFi Adapter last week and replaced it with the Faikin, but might connect it again in the next days to look for consumption data clues.
|
OK changing to 100wH units - beta issue shortly. |
Ah! It did seem weird to me that the energy reading value would depend on a device-dependent and possibly dynamic multiplier. FM/GM being hectowatt-hours makes a lot more sense. I'll be sure to run tests of my own once the Faikin controllers for my multi-zone units get delivered, probably around monday. |
Downloaded latest Beta on to my units, but now don't seem to have Wh in the State or Faikin MQTT messages. So can't compare the new values (I can only do this at night when the other loads are off as the power meter in for the whole building). |
Grr, I set to poll |
Thanks, now getting WH. Looks good so far, will check it over night to see how it compares. |
Ok, so I finally plugged in my Faikin boards, I've been trying out a few things. So far, I can't get either of my units (two FTXS12LVJU connected to a single 2MXS18NMVJUA outdoor unit) to reply to an
So energy monitoring could be something that's not supported on all models, possibly? EDIT: I'll also note that, even though F6 is the command that reports whether powerful mode is turned on or off, and even though neither F6 (read) nor D6 (set) work, that unit very much has a powerful mode, and Faikin is unable to enable it, or recognize that it's on when turned on manually. EDIT2: Enabling debug mode and fiddling with the controller, it seems like neither Powerful mode, neither Comfort mode (louvers go up while heating and down while cooling) or "intelligent eye mode" (target temp goes dow by 2C if there's been no movement in the room for 20+ minutes) in reflected by the output of the list of commands that Faikin knows at this time. |
The link I posted earlier does say that its not supported on all models. It also appears that it may be an estimate. So far I have only tried it on my new premium units. I will try on my Daikin lites and a cassette latter. I find at least for cooling the compressor frequency is pretty consistant with power consumption so if you don't have metering you could use that with a lookup table. But this would be model specific so not something that would make sense for the faikin to do it self. |
When I get time to play around with the commands I would like to try and find humidity. It is reported on the inbuilt wifi (not connected by s21). |
it's likely. |
I have 2 daikins which were connected to onecta app from day one. I've just installed the faikins in them and I can confirm that the Wh value closely resembles what onecta app is reporting. One daikin has a lifetime consumption of the other one So, I'm here to confirm that what faikin is reporting is correct. Hopefully you will soon add the HA sensor for energy :D |
What's the HA JSON config for that? |
Powerful mode also doesnt work properly for me. It can report powerful mode from the remote, but if set by faikin it toggles on and off repeatedly and doesnt seem to do anything. I guess we should start a seperate issue for it. |
My units are only 2 years old, though, even though the LV series heads are older (but still the most efficient) and the MXS multizone series not the highest end of their multizone range (which would be MXL/Aurora). Regarding the missing signals, I wonder how the official wired controllers do. Do tgey have extra commands we haven't found yet?
Probably, yeah. EDIT: Actually that looks like a different issue. My unit simply does not respond to F6/F7 messages, and looking at the publically available service manuals, it appears like it could be related to how neither the wired Nav controller (BRC1E73), nor the brand new Daikin One+ smart thermostats (which have a "boost mode", but only for "unitary" ducted models, not S21 or P1P2), nor the older DKN Cloud/DKN Plus (rebranded Airzone Aidoo adapters, either AZAI6WSCDKB or AZAI6WSPDKC, respectively) have any kind of support or understanding of the powerful (and apparently Comfort airflow) modes that are specific to some wall-mounted or "floor-mounted" units. |
i've managed to add lifetime energy as a sensor in HA with the following configuration.yaml changes: mqtt: it does add the entity in HA, but the entity has no parent device. |
OK, added to latest beta, let me know if that works. |
yes i can confirm, also on my (old) FTXSxxG units no F6, F7, FM and FP replies, so no powerful, silent, power consumption etc. |
Is the FM Meter?
Is the FP Pulse?
The values are Hex values.
I checked it on my FTXM-V.
The value is likely my Power Meter closely.
kWh = FM * FP / 1000.
The text was updated successfully, but these errors were encountered: