My Mitsubishi PHEV integration, via MQTT

I’m attempting to connect a 2019 outlander phev.
Raspberry pi4
Looking for connection to home assistant running Mosquitto

As far as I can see I’ve done everything correctly.

  • I initially connected with the phone app. The phone app could control the car. I turned on the setting to keep the car wifi network running.
  • I disconnected the phone (forgot the network) and have set the pi up to spoof that mac address.
  • I’ve confirmed pi connection to the car wifi network (and have done some steps to ensure the pi maintains connection at all cost).
  • I’ve confirmed the mac spoofing is correct.
  • Note I did all the wifi settings via ncmli instead but i dont think thats a problem?
  • Phev2Mqtt is running. %PHEV_TCP_CONNECTED%
  • I can ping the car (192.168.8.46)
  • I’ve confirmed MQTT connectivity from the PI to mosquitto (note only publishing “phev/available offline”)
  • MQTT authenitcation to HA confirmed. I created a user within mosquitto and have connected via that. Note mosquitto connects to HA via a HA user.
  • When I first put the car into pairing mode with the PI (acc, unlock/lock repeatedly). I saw a successful connection.

The entities have all appeared in Home Assistant. But the states on all of them are “unknown”.

Its currently looking to me like everything is correct but the car is “unavailable”. I don’t believe i should need to run the pairing process every time it leaves and re-enters the pi’s range?

Has anyone experienced this and have any suggestions? I feel like set-up wise I’m 99% there.

I really hope theres a solution here,

Thank you

I had been trying to get this working for a while, although not being that knowledgeable on the Linux side of things, but I have managed to get it up and running at home and my office. I did a writeup for a phev group I’m in on FB. Anyone like it, it can be found here

1 Like

Phev2mqtt — Full Install & Setup (Ubuntu Server) :+1:

1 Like

I have already been in touch with you on FB group.
Just wanted to say thank you for the guide, I have a new Pi4 on order and will try this next week.

1 Like