Various sensors - only one alarm possible?

Hi all,
Hope you can help

Here’s the issue, I have ordered quite a few “different” sensors which are not here yet and I’d like to know when they arrive will Cayenne allow several different sensors (Current, watts & voltage for example) to trigger (turn on) the same alarm, like a relay or a led.

I can’t use the drop downs in the dashboard to see if this is possible as I don’t have any sensors to try and I have looked at the forum and have done several searches on the web and as yet not found my answer, so I hope someone can advise. Thanks

you can add as many trigger you want to the sensor to activate the relay or the led.
if current > value then turn on led.
if watts > value then turn on led.
if voltage > value then turn on led.

@lodgemoorlad do not create multiple topics. You can continue on one single topic all your issue.

Hi Sharmik,
Ok got that, sorry for the multi posting .Thanks again for your help.

1 Like

I have a pond that has a float switch to turn off a pump if it drops to a certain level. Does anyone know if I can connect this float switch to a pi running Cayenne which in turn will turn off the pump and email me to say there has been a problem. Thanks in advance

which float switch are you referring to? do you have any link to it. is it possible to connect it to the raspberry pi?

Hi shramik
This is it

have a look at this video 14. Arduino Liquid Water Level Sensor with Horizontal Float Switch - YouTube
just replace it with the raspberry pi and connect it to 3.3.v in place of 5v. then you can just connect it as a digital button to cayenne.

Thanks once again shramik, that helps a lot

Shramik, in fact this is just what I need, perfect thanks so much. I guess, I can set this up now in cayenne , is that correct.

yes, you can step your entire project with cayenne.

Excellent, thanks for helping with that shramik👍

Hi, my first sensor has arrived, its a 3 pin DHT11 humidity and temprature sensor. so I looked on the forum and the Cayenne pages to see how to install it and found this


Jan '17

You’re right, the apps do not have support for mqtt yet. It’s coming.

So my question is, it would be fantastic if this has been done. If not does anyone know for a complete beginner like me the most simplest way of getting this into cayenne please.

Here is the working code for DHT Cayenne-MQTT-Arduino/DHT.ino at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub

Hi Shramik

Thanks for the reply

Is this just a matter of cut and paste all that’s there ?

Or will I need an editor ?

Sorry about my lack of knowledge but it’s all new to me and in my case every little (knowledge) helps…a lot !

which device are you using? raspberry pi or arduino?

Raspberry pi !

there are two ways to go with.

  1. Cayenne Agent:- Use DHT plugin GitHub - myDevicesIoT/cayenne-plugin-dht: A DHT sensor plugin for Cayenne
  2. Cayenne Python library:- Combine DHT python DHT-sensor-library/DHTtester.ino at master · adafruit/DHT-sensor-library · GitHub with cayenne python library GitHub - myDevicesIoT/Cayenne-MQTT-Python: Python Library for Cayenne MQTT API

With 1st option, you need minimum programming knowledge (as in how to add the plugin in the pi) but it has limited sensor plugins. with 2nd option, you need python programming knowledge but you can add any sensor to your pi.

Thanks again shramik, really good of you to help.
I’ll take a look tonight and hopefully we will be in luck , thanks

Just one quick question.

Do you know if I still need to use a 10k pull up resistor with this as it’s not mentioned here?