Close
0%
0%

ESPHome over CAN bus

Use CAN bus instead of WiFi to connect ESPHome based devices to HASS via MQTT.

Similar projects worth following
I've recently come across multiple projects where people use ESPHome based devices in their camper vans. Those devices were obviously connected to the main device running HASS via WiFi. That made me thinking - what if we could use CAN instead of WiFi? CAN protocol is used by numerous electronic modules in vehicles enabling them to talk to each other, so it could probably have some advantages over WiFi in camper van scenarios too.
* You wouldn't need to set up credentials for every device.
* No reception problems if some device needs to be placed into some metal box.
* May have some security benefits as well - e.g. you don't have to reconnect all the devices if your WiFi password gets exposed.

The scope of the project is to implement a custom ESP transport which would allow ESP Home to talk through CAN BUS and a CAN 2 MQTT bridge which would talk to custom ESP transport and route message to and from the MQTT server.

Here is my fancy test setup:

1) Simple USB to CAN dongle 

2) A couple of ESP32c3 minis linked to SN65HVD230 CAN transceivers 

mqtt_over_can.mp4

Quick demo

MPEG-4 Video - 15.28 MB - 04/30/2025 at 19:03

Download

View all 2 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates