Page 1 of 1

RGB strip / MySensors / Patterns and modes

Posted: Friday 07 November 2025 23:48
by qqlapraline
Hello everyone,

I have built a small RGB strip based on arduino, ws2812b leds and MySensors stack (S_RGB_LIGHT type).
These magnificent small devices allow me to propose different patterns (rainbow, wipe, …).
This device perfectly integrates with Domoticz Light devices (brightness, color, …) but I’m wondering about the best way to trigger a pattern change from Domoticz. Does anybody have an (elegant) idea ?


Thanks,

Qq.

Re: RGB strip / MySensors / Patterns and modes

Posted: Saturday 08 November 2025 0:37
by waltervl
A timer? A dzvents script? How do you do a pattern change now?

Re: RGB strip / MySensors / Patterns and modes

Posted: Saturday 08 November 2025 8:56
by qqlapraline
The patterns are coded on my arduino board.
I’m trying to figure out how to send some information from domoticz to my arduino/MySensors board to trigger the change.
I have tried using V_VAR1 from Mysensors but it’s neither accessible through Json nor Lua.

Qq.

Re: RGB strip / MySensors / Patterns and modes

Posted: Saturday 08 November 2025 17:03
by waltervl
I moved this topic the the mysensors sub forum, perhaps an experience mysensors user picks it up and can give some hints, I never worked with it.

Can you send a http command to mysensors to set the pattern? Because then Domoticz can be made to send such a command (with for example a dummy selector switch)

Re: RGB strip / MySensors / Patterns and modes

Posted: Saturday 08 November 2025 22:05
by qqlapraline
Fair enough for the topic update :)
About the http command, this is basically the json part of it. Unfortunately, it's not possible to go beyond the Brightness, RGB, Status.

QQ.

Re: RGB strip / MySensors / Patterns and modes

Posted: Saturday 08 November 2025 23:32
by waltervl
Can you send a serial command to arduino/mysensors so it sets the pattern?
Because then Domoticz can send that command too.

Re: RGB strip / MySensors / Patterns and modes

Posted: Sunday 09 November 2025 0:33
by qqlapraline
Yes, I can do that. But how would domoticz send me such a command ? V_Custom / V_text ?

Re: RGB strip / MySensors / Patterns and modes

Posted: Sunday 09 November 2025 9:43
by waltervl
Make a dummy selector switch with the different patterns and then with the edit button you can add the serial command as on/off action script https://wiki.domoticz.com/Managing_Devi ... Off_Action

Re: RGB strip / MySensors / Patterns and modes

Posted: Sunday 09 November 2025 21:55
by qqlapraline
Not sure to know how to send data to serial entry of a remote MySensors device using a script…:(

Re: RGB strip / MySensors / Patterns and modes

Posted: Sunday 09 November 2025 22:39
by waltervl
Can you do it from a terminal session on your Domoticz server? And if yes, what is the command you use?

Re: RGB strip / MySensors / Patterns and modes

Posted: Sunday 09 November 2025 22:44
by qqlapraline
I think there is some kind of misunderstanding.
I have to go through the MySensors api to access my device remotely (it’s not attached to my Domoticz server as you have probably figured out). And in this API, there is no particular way that I know of that would allow me to send some command to the device :(