Home Assistant integration?

I have 2 aquascape pumps that are wifi controlled with Blynk controllers. I am able to use the Aquascape app, Google Home and Alexa to interface with these pump controllers. Instead of using these apps, I would like to control my pond pumps with Home Assistant (an open source home automation platform). Is there a way to integrate these Blynk controllers into Home Assistant?

Thank you for your help.

As far as I know, both Blynk and Home Assistant have web APIs which you can utilize to control one from the other.

For the Blynk side of things, read here:

For the Home Assistant side of things, read here:

So, to give you an example, if your pump has ON and OFF let’s say (I don’t know your specific use case) and ON and OFF are two states of the V1 Datastream, if you entered this link on your browser:

https://blynk.cloud/external/api/update?token=[YOURTOKEN]&v1=1

Your pump would turn ON. Considering 1 is ā€œONā€.
Obviously, by replacing 1 with 0, the pump should turn OFF.

Depending on how you are using your Blynk controlled pump, you should be able to change the corresponding values using the above method.

Now, if on Home Assistant you add this to you configuration.yaml:

rest_command:
  pump_turn_on:
    url: "https://blynk.cloud/external/api/update?token=[YOURTOKEN]&v1=1"
  pump_turn_off:
    url: "https://blynk.cloud/external/api/update?token=[YOURTOKEN]&v1=0"

By calling the Service ā€œpump_turn_onā€ you should theoretically see the pump turn on. :smiley:

That being said, AGAIN, read the docs, and figure out what’s best for you.

PS. By using this, in reverse, you could send data FROM blynk, TO your Home Assistant. If your pumps have some kind of sensor going on.

Hope I helped. Good day sir.

These are pumps manufactured by a 3rd party which utilises Blynk’s white label product to create a customised app to control the devices.
The white label product is hosted on a different server, and customers don’t have access to the physical pinouts or the virtual pin schema.

Pete.

Thank you @bonamin. I did get this working in HA with REST commands without using Blynk. I found a post where someone was using https calls to control their pumps so tried it in HA and it’s working. It would be a lot nicer if Aquascape would provide api that could be used for an integration but …

I’ll post the calls here in case someone else is going down the same rabbit hole I did. (The forum only permits me to post two commands. If anyone would like all of them just contact me.)

url_set_pump_speed: ā€œhttps://smartcontrol.aquascapeinc.com/external/api/update?token=MyToken&v2={{ states(ā€˜input_number.bog_speed’) |int }}ā€
url_pump_on: ā€œhttps://smartcontrol.aquascapeinc.com/external/api/update?token=MyToken&v1=1ā€

I’m glad you found a solution. :slight_smile:

Technically it’s the same idea as I showed you, but as Pete said, since aquascape are using their own server, you are using theirs, to access your devices. :slight_smile:

@schmuttis

I could really use some help with integrating my 2 Aquascape pumps in to Home assistant. I couldn’t find a way to DM you… Im totally lost when it comes to this , I have tokens just could use help with the commands
Thanks if yips ever get this !!!

@Kilrgt sorry I just found the notification for this in my spam email. I’m on Home Assistant community with the same name, schmuttis. You should be able to contact me there.

Hi everyone,

I wanted to share a small project I’ve been working on that might be useful for others in the community. I’ve created an integration for Blynk and published it on GitHub. You can find the details and source code here:

:link: GitHub - Korkuttum/blynk: This integration is designed to manage your IoT projects through the Blynk platform. It provides easy control of common IoT devices like ESP8266 and ESP32, allowing you to expose your Blynk virtual pins as sensors, switches, and binary sensors in Home Assistant.

It is still a work in progress, and I would really appreciate any feedback, suggestions, or contributions from the community. Feel free to test it out, report issues, or contribute improvements.

Hope it helps someone! :blush:

1 Like

Nice stuff! Not an Assistant user, but it’s great to have an integration with such a popular service :clap:

@Vasyl - you might be interested

2 Likes