A1763 Anker C1000 Gen2 #249
Replies: 8 comments 80 replies
|
Hi, not sure what you are trying to build here. |
|
So the question is how AI should reliably match the fields to names for your specific device type? |
|
OK, I spent the whole day to make required changes to support the new timestamp formats and also description for multiple commands per message type. Most of my descriptions are questionable to me, because the messages had lots of 0 values. You will have to compare that while ports and sockets have corresponding power values or changing states, when you compare the decoded messages and extracted values with the App live values. You can follow that on the value view once the fields are described with a name. That template is the same for 0421 and 0900 messages, those message types seem to have the same format. Having nested commands per message makes the command composition from the description more difficult. But better to consider this now, than after those routines have been developed and just then comes a new format. So fortunately I did not start with that framework yet, until I have a better overview about existing commands. Important to know is also if you see regular messages, without any realtime trigger? I don't think the 0900 is regular from the intervals I found in the export. Maybe there is one even less frequently. The problem is, that without regular status message you are always forced to either trigger realtime data, or find a command for one time status request, that can be automated as desired (via HA for example) If you can trigger a single status message request with the new status request option of the mqtt_monitor, you can validate that. Last but not least: When you name the values, re-use the namings as defined for C1000 model. Unique names are only to be used for unique functions between the 2 models (or basically across all devices). For that reason and existing Api value I also change ac_charge_limit to ac_input_limit for the state descriptions in the 'ac_charge_limit' command. |
"a6": {
"bytes": {
"05": {
"name": "output_power_total_1?", # OUTPUT POWER TOTAL
"type": DeviceHexDataTypes.sile.value,
},
"06": {
"name": "output_power_total_2?", # OUTPUT POWER TOTAL
"type": DeviceHexDataTypes.sile.value,
},
"07": {
"name": "output_power_total_3?", # OUTPUT POWER TOTAL
"type": DeviceHexDataTypes.sile.value,
}
},
},which gives on one of the messages: So I guess 2 or 3 are candiates with factor 0.01 depending what the value actually was... |
|
OK, mein letzter Versuch die fehlenden Infos zu bekommen, ich hoffe du kannst mir diese Infos geben ohne deine KI bemühen zu müssen, die eh nur Verwirrung und unötige Arbeit macht. Das nervt mich gerade extrem um ehrlich zu sein....
|
|
Port Memory Switch? Was meinst du genau? Ich denke du meinst den Ausgangsport-Speicherschalter oder ;) |
|
Hi @DreamScout Das gleiche gilt für die Temperaturumstellung auf Fahrenheit. Sollte jedes Gerät haben was Temperaturen anzeigt denke ich. |
|
Dito, bin auch im Urlaub. |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi.
I tried since days to find out the right Code with Chatgpt and Co-Pilot.
This are the results. But i dont know how to test it.
Is it possible to activate and deactivate DC and AC?
This are the results from ChatGPT.
{ "soc": { "block": "a5", "index": 2, "scale": 1.0 }, "temp": { "block": "a5", "index": 0, "scale": 1.0 }, "ac_output_w": { "block": "a6", "index": [0,1], "scale": 0.2 }, "ac_on": { "block": "a7", "index": 0, "type": "bool" }, "ac_input_w": { "block": "a4", "index": [6,7], "scale": 1.0 }, "dc_on": { "block": "a7", "index": 0, "type": "bool" }, "dc_power_w": { "block": "a7", "index": [1,2], "scale": 0.2 }, "usb_a_w": { "block": "ab", "index": [0,1], "scale": 1.0 }, "usb_c1_w": { "block": "ac", "index": [0,1], "scale": 1.0 }, "usb_c2_w": { "block": "a8", "index": [0,1], "scale": 0.1 }, "usb_c3_w": { "block": "aa", "index": [0,1], "scale": 0.1 }, "display_on": { "block": "f9", "index": 0, "map": { "08": true, "05": false } }, "charge_limit": { "block": "a5", "index": 3, "scale": 1.0 }, "discharge_limit": { "block": "d9", "index": "dynamic", "scale": 1.0 }, "fast_mode": { "source": "cmd17", "type": "flag" }, "eco_mode": { "source": "cmd17", "type": "flag" } }This is a Decoder build with Co-Pilot KI.
The AC and DC Status, Temperature, SOC and AC Watt is working and i see it in Home Assistant.
All reactions