Using If This Then That Logic via GUI? Temp to Control AC via Relay

Hi All,

Looking to improve an existing project.
Using BME280 Temp/humidity sensor in my work room via ESP8266

Everything works great.
I want to make the sensor smarter and learn how to hookup a relay to manage temp in a room via Fan or AC

So currently V0 shows Temp.

I want to use logic like

if V0 > 90 Degrees Turn Relay On ( turns on fan/ac)
if V0 < 75 Degrees Turn Off Relay ( Turns off fan/ac)

Is that possible using widgets?

Thanks!

Look at Eventor.

You don’t really need an extra widget to do this. You have the temperature, you just have to write code to turn the relay off/on.

But if you want to take the project a bit further, you can change the set temperature and hysteresis with widgets. You can then use Blynk to set the temperature in the room.

@Costas thank you.

This sounds perfect but for some reason i cant find that widget in the widget box.
Latest version of Blynk app on ios.

I added an RTC widget like the instructions said.

Do i have to do anything special to be able to insert Eventor?

@Eugene any ETA for Eventor.

@Morty sell the iOS and buy a couple of Android devices.

1 Like

You can also install BlueStacks. It’s an Android emulator for the PC. That way you can enjoy the Blynk App in it’s most natural habitat, a.k.a. Android :slight_smile:

1 Like

Eventor widget just passes a rule to be executed on server. This has its up and down sides. For example, in your case, the relay won’t turn on/off when needed if for some reason the network connection on your device is lost.

That is why, some might want to add those 3 lines of code checking temperature and turning relay on/off on the device itself.

Sorry, we can’t provide an accurate ETA due to always-changing pipeline of tasks for business customers.

It will for the OP because temperature is checked on a regular basis and a well designed system shouldn’t suffer with network disconnects.

Hi all.
I have an android for testing purposes and its doing what i want so… yay!

Once last question about eventor.

What would be the best way to wrap timing constraints to eventor events.
So for example… if i only want eventor logic from 9am to 5pm and disable eventor from 6 pm to 8am, what would be the best way to accomplish this?

Set a time constraint on it in the eventor itself I presume. Have it disable/enable the Timers I’d reckon.