I have used Blynk for many years and really like it. I also use HA.
I would like to use Home Assistant (arduinoHA or MQTT) on the same device (ESP32) as Blynk. I.e. the device would run Blynk be a device with entities in HA.
Both ArduinoHA and MQTT libraries are dependent on wifi.h which seem to conflict with blynk.
Is there a way to do this?
I understand there are integrations within Blynk but for several reasons I would like to keep the code separated.
You can drop Blynk library and just use MQTT.
You will lose all OTA updates, and Wi-Fi provisioning, but everything else should work
Thanks, but can I really skip:
#include “BlynkEdgent.h”
I would expect all the stuff for Blynk is in that library?
You should stop using the Edgent sketch altogether, and instead use PubSubClient to talk to the Blynk server via MQTT.
Take a look at the Blynk MQTT documentation…
Pete.
Ah, I see, thanks will look into it.