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.
example:
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

Hi,
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 https://www.youtube.com/watch?v=ijPnZpMll4E
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
Appreciated…

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

adamLeader

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 https://github.com/myDevicesIoT/Cayenne-MQTT-Arduino/blob/master/examples/CommunitySubmitted/DHT/DHT.ino

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 https://github.com/myDevicesIoT/cayenne-plugin-dht
  2. Cayenne Python library:- Combine DHT python https://github.com/adafruit/DHT-sensor-library/blob/master/examples/DHTtester/DHTtester.ino with cayenne python library https://github.com/myDevicesIoT/Cayenne-MQTT-Python

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?