-
Notifications
You must be signed in to change notification settings - Fork 2
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
It is working, but.... #4
Comments
I don't actually have the car anymore so I can't really test any of this, however to explain... The reason it kinda works only some of the time it due to the way the code handles the encryption of the payloads, I never figured out a way to get the keys 100% of the time, but the car leaks the current key which is then used to send commends. the register 2 is to control the timer and the heat mode, if I recall the 7th byte is the mode, first 4 bits are the time and second 4 bits are the mode, you can see the definitions here |
Ok, thank you. It is a beginning :-) If I look on your code I found this `switch(time)
So 10 Minutes would add 0 on number 7 = {0, 0, 255, 255, 255, 255, 0, 255, 255, 255, 255, 255, 255, 255, 255} But this doesn't fit with the example saying 10 Minutes: [0,0,255,255,255,255,1,255,255,255,255,255,255,255,255] |
I think the timing stuff is clear. { "operation":{"airCon":"on"} turns on AC. |
This command sets the mode, then use the aircon on to switch it on.
|
Now I total confused. "value" : [0,0,255,255,255,255,1,255,255,255,255,255,255,255,255] Sorry if I'm stressing with all my question. Just learning... :-) |
I just started the board in the car and receiving MQTT topics. When I send
nothing happens. Has anyone got this working? |
"value" : [0,0,255,255,255,255,1,255,255,255,255,255,255,255,255] The only value that matters is in bold. so its set to 1 above which means 10 mins heat 1= HEAT |
okay, thanks, understood. In the meantime, I got additional readings (which is cool):
` But what is HVAC Mode and Time? |
30 mins cool
10MIN = 0 |
Yes it is cooling, that's why it goes to "false". I'm still struggling sending HEAT. |
I change the mode from the official app and then change from heat to cool
twice a year :) I just send the start HVAC command
ons 17 feb. 2021 kl. 22:03 skrev MBj1703 <[email protected]>:
… Yes it is cooling, that's why it goes to "false".
I'm still struggling sending HEAT.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGFMEU65HFFIKRUFIU4RAYDS7QVJRANCNFSM4XYWXTOA>
.
|
But what is this command? The JSON what papawattu said is not working: `"value" : [0,0,255,255,255,255,1,255,255,255,255,255,255,255,255] The only value that matters is in bold. so its set to 1 above which means 10 mins heat 1= HEAT |
I changed my MQTT server and now I can see something comming in. When I send to the ESP, I can see the following in the monitor: I (27053) PHEV_SERVICE: Phev message command F6 reg 02 type 00 length 0F So looks like it receive something, but nothing happens? |
Today, after testing around, heating started once. The connection in general is really fragile. The ESP is restarting often. Also hvac_mode and time are not changing. Both are always 2, like mode are false, even if the heating is starting by schedule. Here are more logs when sending: I (44983) MQTT: MQTT_EVENT_DATA |
Today I played again and got the heating working...just 1 time.... |
Got my board today and just tried it. It is working in general.
I got the MQTT Topics into my Smarthome:
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_1 88
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_2 250
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_3 207
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_4 233
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_5 173
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_6 173
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_7 165
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_8 21
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_data_9 1
setstate MQTT2_phev_ttgo 2021-02-17 17:50:02 responses_1_startMessage_length 9
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_time 2021-02-17T16:50:02Z
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_1 48
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_10 48
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_11 16
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_12 1
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_13 0
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_14 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_15 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_16 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_17 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_18 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_19 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_2 48
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_20 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_21 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_22 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_23 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_24 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_25 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_26 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_27 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_28 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_29 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_3 54
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_30 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_31 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:03 responses_1_updatedRegister_data_32 255
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_4 48
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_5 48
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_6 51
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_7 48
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_8 48
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_data_9 48
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_length 13
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_register 192
setstate MQTT2_phev_ttgo 2021-02-17 17:50:05 responses_1_updatedRegister_xor 206
setstate MQTT2_phev_ttgo 2021-02-17 17:47:34 status_dateSync 2021-02-17T17:47:17Z
setstate MQTT2_phev_ttgo 2021-02-17 17:47:35 version v0.2-15-g62f5716
Now I would like to "translate" this information in readable format.
Therefore I would to like to know, what the different topics mean.
Something like: updatedRegister_data_1 48 = Batterie at 48%
Also I would like to know, how to send.
From the example I can see this JSON:
{
"requests" : [
{
"updateRegister" : {
"register" : 2,
"value" : [0,0,255,255,255,255,1,255,255,255,255,255,255,255,255]
}
},
{
"operation" : {
"airCon" : "on"
}
}
]
}
turns on cooling for 10 minutes.
So what are the other commands?
Also here a "translation table" would be helpful.
Thanks a lot!
The text was updated successfully, but these errors were encountered: