phev2mqtt icon indicating copy to clipboard operation
phev2mqtt copied to clipboard

[QUESTION] connect emulator to home assistant

Open geraveoyomama opened this issue 4 months ago • 0 comments

I am struggling to connect an emulated car to home assistant. From the allowed commands it seems that ./phev2mqtt emulator --mqtt_server tcp://homeassistant:1883 --mqtt_username *** --mqtt_password *** would do the trick but I do not see it appear in the MQTT integration..

I have also tried to connect with a seperate instance of phev2mqtt using ./phev2mqtt client mqtt --mqtt_server tcp://homeassistant:1883/ --mqtt_username *** --mqtt_password *** --address localhost:8080 This also doesnt show up in the MQTT integration

logs, respectively

./phev2mqtt emulator --mqtt_server tcp://homeassistant:1883 --mqtt_username phev_test --mqtt_password phev_test --address localhost:8080 -v debug
level=debug msg="%PHEV_EMULATOR_START% Started PHEV emulator, address=localhost:8080"
level=info msg="Connection received!\n"
level=debug msg="%PHEV_SVC_READER_ERROR% EOF"

./phev2mqtt client mqtt --mqtt_server tcp://192.168.1.196:1883/ --mqtt_username mqtt --mqtt_password mqttha --address localhost:8080 -v debug
level=info msg="%PHEV_TCP_CONNECTED%"
level=debug msg="%%PHEV_START_AWAIT%%"
level=debug msg="%PHEV_TCP_SEND_MSG%: [00] PING REQ      (id a)"
level=debug msg="%PHEV_TCP_RECV_MSG%: [00] PING RESP     (id a)"

And so my question is: am I doing this right?

geraveoyomama avatar Aug 05 '25 22:08 geraveoyomama