Hey Gunner,
recently I really would not spam, it was only a wrong click because of my gaucherie
Hope you can forgive me 
No about me problem with the understanding from Blynk… now I would program something which works like a lock, which means, only when something is happen, the other thing can work. I would use this for a central off funciton of the final sketch. Now I wrote this sketch, where led on D4 lights, when button V1 is pressed and led on D1 should light only if button V1 and V7 is pressed. I just can not find my error… To test I use only digitaloutputs so I wrote digitalWrite(D1, HIGH). The declaration with the output Pins from the wemos we clarified just last one, also that I have to declare the outputPin in void setup() as an output… I did all. If I let away the condition that D1 lights only when button v1 is also pressedork i can control both leds with to different buttons but is not what I want. Thereby I can also exclude an error by wiring. Here the sketch
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "b5a2426a237549448f9dff83a354xxxx";
char ssid[] = "Fritzboxxxxx";
char pass[] = "6703370948621811xxxx";
int StatusV1 = 0; //status from Button V1
int StatusV7 = 0; //value from Slider V3
BLYNK_WRITE(V1)
{
int StatusV1 = param.asInt(); // assigning incoming value from pin V1 to a variable (Button)
if (StatusV1 == 1) { // If value is 1 run this command
digitalWrite(D4, HIGH); // D1 output from Wemos D1 mini
}
else { // If value is 0 run this command
digitalWrite(D4, LOW); // D1 output from Wemos D1 mini
}
Serial.print("StatusV1 is: "); // Output the value "pinValue" in Serial Monitor
Serial.println(StatusV1);
}
BLYNK_WRITE(V7)
{
int StatusV7 = param.asInt(); // assigning incoming value from pin V1 to a variable (Button)
if ((StatusV7 == 1) && (StatusV1 == 1)) // If value is 1 run this command
{
digitalWrite(D1, HIGH); // D1 output from Wemos D1 mini
}
else { // If value is 0 run this command
digitalWrite(D1, LOW); // D1 output from Wemos D1 mini
}
Serial.print("StatusV7 is: "); // Output the value "pinValue" in Serial Monitor
Serial.println(StatusV7);
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(D4, OUTPUT); // D4 is an output (digital)
pinMode(D1, OUTPUT); // D1 is an output (digital)
}
void loop()
{
Blynk.run();
}
Could it be problem from the declartion from the variable “StatusV1”? Can I use it only in the function from BLYNK_WRITE(V1) or it´s possible to declare it as an global variable how I did it at the begin from the sketch?
But this work:
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "b5a2426a237549448f9dff83a354xxxx";
char ssid[] = "Fritzboxxxxx";
char pass[] = "6703370948621811xxxx";
int StatusV1 = 0; //status from Button V1
int StatusV7 = 0; //status from Button V7
BLYNK_WRITE(V1)
{
int StatusV1= param.asInt(); // assigning incoming value from pin V1 to a variable (Button)
if (StatusV1 == 1) { // If value is 1 run this command
digitalWrite(D4, HIGH); // D1 output from Wemos D1 mini
}
else { // If value is 0 run this command
digitalWrite(D4, LOW); // D1 output from Wemos D1 mini
}
Serial.print("StatusV1 is: "); // Output the value "pinValue" in Serial Monitor
Serial.println(StatusV1);
}
BLYNK_WRITE(V7)
{
int StatusV7 = param.asInt(); // assigning incoming value from pin V1 to a variable (Button)
if (StatusV7 == 1) // If value is 1 run this command
{
digitalWrite(D1, HIGH); // D1 output from Wemos D1 mini
}
else { // If value is 0 run this command
digitalWrite(D1, LOW); // D1 output from Wemos D1 mini
}
Serial.print("StatusV7 is: "); // Output the value "pinValue" in Serial Monitor
Serial.println(StatusV7);
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(D4, OUTPUT); // D4 is an output (digital)
pinMode(D1, OUTPUT); // D1 is an output (digital)
}
void loop()
{
Blynk.run();
}
Here I control both LED with two different buttons, but without any condition between the lights (not what I want but hope you can help me
)