Problem with Bridge Widget - No data transfer

You need to describe in detail what your setup is, what datasteams you’ve defined, and what you’ve done so fat with the automations.
Without this information we’re just guessing.

Pete.

I have two templates, A and B.
Template A has data stream on V1 defined as integer and enabled as Expose to Automation - Temperature control.
Template B has data stream V2, integer, defined also enabled and configured as switch.
Device “Send” is connected to template A and receives data from a sensor. The data should be transmitted as Blynk.virtualWrite(V1, humidity); (?)
Device “Receive” is connected to template B and needs to operate a relay that is connected to it.
I have created an automation that says “when V1 is greater than 80 than V2 is off”

Both devices are ESP8266.

I hope that clarify my situation, I’m missing the last part of how the relay state is switched.

Thanks for the help.

How did you configure your datastreams ?
Post some screenshots please.

We also need to know what you’ve defined in the automations so far, and where you are running into problems.

But did you do this…

When you create the automation, You’ll obviously start with Device State, and Select Device A
Choose whatever name you’ve assigned to V1, and then define your criteria (Humidity between 75 and 100 maybe).

You’ll then choose Control Device and select Device B, and whatever name you’ve given to datastream V2.
You’ll presumably send a value of 1 to turn the relay on?

What virtual pin handers do you have in your sketch running on Device B to turn the relay on when V2 is set to 1?

Pete.

2 Likes

I can’t add more than one picture so i’ve added in the meantime only the Action configuration:

I guess what confuses me is the demonstration video that states “no code required” and it shows the automation wotking without any code written.

If in the code there is a section that handlers the switching data stream (catches the value 1/0) and applies it to the relay state, than everything makes sense (this is what I understand from this: “What virtual pin handers do you have in your sketch running on Device B to turn the relay on when V2 is set to 1?”).

Thank you.

Send data stream:

Not shown, range of 0-100 defined as integer.

Switch data stream:

Switch data stream:

Defined as integer and range 0 to 1.

For any of this information to make sense, you need to translate your “Device A” and “Device B” names into names that match those appearing in your automation screenshot, and state which device each of the datastreams relate to.

You can’t achieve any switching of relays etc using virtual pins without some BLYNK_WRITE(vPin) handler code on your device that has the relay attached to it.

You should read this:

Pete.

Hey Pete, thanks allot for the help!

I now understand that this came from the youtube tutorial on automation’s.
At the end of the tutorial there’s a sentence saying “and no code involved”, and I understood that there
is a way to operate the automation without any code written, I now understand that this is wrong…

Thanks for the patience to explain me how it works.