Need assistance with a 8 Channel relay switch on Node Red

586 views
Skip to first unread message

Stefan Claassen

unread,
Aug 18, 2017, 7:17:42 AM8/18/17
to Node-RED


I am extremely new to the IOT world and recently thought I would start doing some sort of home automation project to get me started. 

My idea was to use Google assist, Node Red, MQTT with a raspberry pi 3 Model B to toggle a 8 channel relay switch on and off via voice command and via some sort of mobile application and let Node red handle all the voice prompt recognition for each channel on the relay. 

Below is a flow I am attempting to use to accomplish on/off on each relay for now. For testing purposes I have only worked on on relay on my function for now. 


Problem I am facing is that my switch does not know what to do with the command it receives from the function, I have tried every resource I could find and still no luck with getting this right. Can someone please just guide me in the right direction to get this working?











Colin Law

unread,
Aug 18, 2017, 8:32:40 AM8/18/17
to node...@googlegroups.com
I think it might be easier to have multiple outputs from your function, one for each light. Then you can send 0 or 1 to the appropriate output and drive the relay directly.

Colin

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/1bfd830f-502f-4436-8966-d720c7c7d0f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stefan Claassen

unread,
Aug 18, 2017, 8:48:05 AM8/18/17
to Node-RED
Thank for the reply Colin, not too sure how I would proceed with creating multiple outputs on the function. 



On Friday, August 18, 2017 at 2:32:40 PM UTC+2, Colin Law wrote:
I think it might be easier to have multiple outputs from your function, one for each light. Then you can send 0 or 1 to the appropriate output and drive the relay directly.

Colin
On 18 August 2017 at 12:17, Stefan Claassen <stefancl...@gmail.com> wrote:


I am extremely new to the IOT world and recently thought I would start doing some sort of home automation project to get me started. 

My idea was to use Google assist, Node Red, MQTT with a raspberry pi 3 Model B to toggle a 8 channel relay switch on and off via voice command and via some sort of mobile application and let Node red handle all the voice prompt recognition for each channel on the relay. 

Below is a flow I am attempting to use to accomplish on/off on each relay for now. For testing purposes I have only worked on on relay on my function for now. 


Problem I am facing is that my switch does not know what to do with the command it receives from the function, I have tried every resource I could find and still no luck with getting this right. Can someone please just guide me in the right direction to get this working?











--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Colin Law

unread,
Aug 18, 2017, 9:10:14 AM8/18/17
to node...@googlegroups.com

To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

David Caparrós

unread,
Aug 18, 2017, 12:51:23 PM8/18/17
to Node-RED
Hello Stephan,

If relais are attached directly to raspberry pi GPIO and you don't have nothing else why you use MQTT ?

Just use node-red-dashboard switch to turn them on and off.

If you want it to handle it by voice on your phone mayve you can take a look on "tasker"  (app for android).


Reply all
Reply to author
Forward
0 new messages