Wled: Possibility to control several relays

Created on 3 Jul 2019  路  10Comments  路  Source: Aircoookie/WLED

Is there a possibility to control a 4-channel relay module, for example with pin D5-D8?
IMG_20190703_184207

If yes where should I start to implement it?

stale

Most helpful comment

thanks @sjude68 , whit your example i can make it work!
modified some of the code and voil脿 now i can control my relays whit alexa

Even I modified for Alexa & mqtt control. It was modified within other scripts. I want to move the lines in usermod so when there is a version update, it will be easy to just copy the usermod.ino

All 10 comments

pick a method of control
control the relay with chosen method
then you will know what to add where
work bottom up instead of top down

I have used 4 relays with Alexa control. Add the code as per the example in espalexa.

Check this out.
https://github.com/Aircoookie/WLED/issues/177

@sjude68 can you share your code whit us? to take it as example
thanks in advance

@Bobinox
wled00.zip

I added 4 relays and a temp/humidity sensor. You can check the modified code in attached file.

Anyone try this with mqtt?

Anyone try this with mqtt?

Yes. I setup MQTT on Raspberry Pi and it works

Thank you I'll try this

thanks @sjude68 , whit your example i can make it work!
modified some of the code and voil脿 now i can control my relays whit alexa

thanks @sjude68 , whit your example i can make it work!
modified some of the code and voil脿 now i can control my relays whit alexa

Even I modified for Alexa & mqtt control. It was modified within other scripts. I want to move the lines in usermod so when there is a version update, it will be easy to just copy the usermod.ino

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
Thank you for using WLED!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwingefeld picture jwingefeld  路  3Comments

Mombonav picture Mombonav  路  4Comments

CollaVinilica picture CollaVinilica  路  3Comments

Sasquatch6ft9 picture Sasquatch6ft9  路  4Comments

athlon1900 picture athlon1900  路  3Comments