Actuator is not working

Hi, there

I found I cannot add any “Actuator” in my projects to get LED on my ESP8266 working . For examples, to add a light switch, my procedure is

  1. Add new… → Device/Widget
  2. select “Actuators” → Light → Light Switch
  3. then a Light Switch icon and Luminosity icon pop out → select “Light Switch”
  4. “Enter Settings”

Then, the only thing I could do is to edit the “Widget Name” but it is useless. The others are forbidden to configure. The questions are

  1. Is Actuators function cancelled? or
  2. Any details are missing during my procedure?

thks in advance!!

1 Like

@teddy1014 welcome to cayenne community.
add new > devices/widget > actuators > generic output > digital output > fill all the correct detail.

Hi,

I’ve tried but I found the blank is still not available for me. See attached jpg. Is there any idea?

Imgur

Thks

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

Hello,

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??

Imgur

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);
  }
}
1 Like

Your device needs to be online to add/remove of sensors and other elements.

1 Like

Hey @teddy1014,

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?

~B

Hello,

No significant improvement even current DHT11 measurement get online. See attached screencut.

Imgur: The magic of the Internet

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.

1 Like