look like you have no device/board added to cayenne.
First of all you need a add a device like a raspberry pi or a esp8266 board so that you can get connected to cayenne.
which device you have ? so we can move to next step
I’ve checked again. It is useless if I chose Arduino Uno or ESP8266 as my working project. Same as before, I could not activate an acutuator. See attached screen cut. Do any others have same issues? Or only me got blocked? Could some one help me??
that is because you are using MQTT.
go to add new > devices/widget > custom widget >button > fill all the detail and select channel 1 and add this to your code.
CAYENNE_IN(1)
{
int currentValue = getValue.asInt();
if (currentValue == 1)
{
digitalWrite(4, LOW);
}
else
{
digitalWrite(4, HIGH);
}
}
I think @Agroelektronik may have found the issue with your device not being online when adding a widget. Once your device is online and connected does it work?
I tried but it is not successful. Applying ES-01 module, GPIO_2 is connected to DHT 11 which is assigned to support channel 0 1nd 1 for temp and humidity. So I apply channel 2 for this new “LED” function. GPIO_0 of ES-01 module is connected to LED. So, should I give the code like
CAYENNE_IN(1)
{
int currentValue = getValue.asInt();
if (currentValue == 1)
{
digitalWrite(0, LOW);
}
else
{
digitalWrite(0, HIGH);
}
}
I have done it following your procedure. See my comments below.
No action on my LED of ESP8266 when pressing LED icon on Cayenne dashboard. The icon looks like a “sensor” reporting current status rather than an “actuator” which is what I want.
If I was wrong, pls help correct me. Thanks in advance.
@bestes he is using MQTT. so when adding a generic output actuator he cant see this device from the list. so @teddy1014 add a custom output widget and add the code.