phev-remote / phevctl

39 stars 15 forks source link

Heater #5

Open fondberg opened 3 years ago

fondberg commented 3 years ago

First off, great work!

Do you know if it is possible to turn on the heater or perhaps enable AC with some temperature?

gmta commented 3 years ago

There seems to be a largely hardcoded payload in the airconditioning mode call that might be interesting to experiment with:

https://github.com/phev-remote/phevcore/blob/57d89c2d9dd175eba613d74ce856aa5f766dbb50/src/phev.c#L353

Not sure if they do anything at all (except for val which sets both the mode and duration). As far as I know, the official app does not support setting the temperature so it might be a limitation (turn on/off vs. climate control).

fondberg commented 3 years ago

The official app has climate with heat and cold afaik. I will probably dig into this later when my Wifi bridge (or do you know if anyone has made one already to bridge to the cars wifi) is setup. I have way too many open source projects going on right now so it might take a while. Will definitely try and help out when that comes comes.

eithe commented 3 years ago

But is standard heat mode such as phevctl acmode heat 20 supposed to work? Cause I can't get that to work eventhough it's listed in the help, and the process reports success:

pi@garasjepi:~ $ phevctl battery
Mitsubishi Outlander PHEV Remote CLI - Designed and coded by Jamie Nuttall 2020
MIT License

Type 'x' then enter to quit.
Register 1A
00 00
Register 1B
02
Register 1C
13
Register 1D
05 00 00 03
Battery level 5
pi@garasjepi:~ $ phevctl

ERROR : Incorrect number of operands
Usage: phevctl [OPTION...] register
  or:  phevctl [OPTION...] battery
  or:  phevctl [OPTION...] aircon [on|off]
  or:  phevctl [OPTION...] acmode [heat|cool|windscreen] [10|20|30]
  or:  phevctl [OPTION...] headlights [on|off]
  or:  phevctl [OPTION...] parkinglights [on|off]
  or:  phevctl [OPTION...] monitor
  or:  phevctl [OPTION...] get <register>
Try `phevctl --help' or `phevctl --usage' for more information.
pi@garasjepi:~ $ phevctl acmode heat 20
Mitsubishi Outlander PHEV Remote CLI - Designed and coded by Jamie Nuttall 2020
MIT License

Type 'x' then enter to quit.
Register 1E
00 01
Register 1F
00 FF FF
Register 20
00 04 E0 7F FB 01 E6 7F F8 01
Register 21
00
Register 22
00 00 FF 7F FF 01
Register 23
00 00 00 02 02
Register 24
01 00 00 00 00 00 00 00 00 00
Register 25
0E 00 FF
Register 26
01
Register 27
00
Register 28
52 45 4D 4F 54 45 36 32 78 70 61 61 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Register 29
00 01
Register 2C
00
Register C0
30 30 33 30 30 30 30 30 30 30 00 01 00
Register 01
01 00
Register 02
02 00 00 00
Register 03
01 11 63
Register 07
00
Register 0C
01
Register 0D
01
Register 0E
7F
Register 0F
00
Register 10
03
Register 11
00
Register 12
15 01 0A 0E 23 25 00
Register 13
00
Register 14
00 00 00 00 00 00 00
Register 15
00 4A 4D 42 58 44 47 47 32 57 45 5A 30 31 36 35 34 39 00 01
Switching air conditioning mode to 2 for 20 mins
Register 16
02 EE 01 6F 00 F0 01 00
Operation successful

A bit low on battery when I issued the command above, but I've also tried when the battery is charged.

jamiejones85 commented 2 years ago

Don't suppose anyone knows the can us message required to turn on the heater? I'm trying to run an electric heater on my DIY EV. A can bus log when the heater is running would be great.