RGB strip / MySensors / Patterns and modes

Moderator: leecollings

Post Reply
qqlapraline
Posts: 19
Joined: Saturday 11 January 2014 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

RGB strip / MySensors / Patterns and modes

Post 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.
3 Raspberry PI (Raspbian + Rfxcom, teleinfo or mysensors gateway)
Bunch of OS THGR810n (5)
Some THN122
1 WGR800 and PCR800
Some BMP085
Bunch of TS34C (4)
Bunch of DIO plugs (3)
Teleinfo
Many Mysensors devices (Temp, Hygro, ...)
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post by waltervl »

A timer? A dzvents script? How do you do a pattern change now?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
qqlapraline
Posts: 19
Joined: Saturday 11 January 2014 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post 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.
3 Raspberry PI (Raspbian + Rfxcom, teleinfo or mysensors gateway)
Bunch of OS THGR810n (5)
Some THN122
1 WGR800 and PCR800
Some BMP085
Bunch of TS34C (4)
Bunch of DIO plugs (3)
Teleinfo
Many Mysensors devices (Temp, Hygro, ...)
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post 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)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
qqlapraline
Posts: 19
Joined: Saturday 11 January 2014 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post 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.
3 Raspberry PI (Raspbian + Rfxcom, teleinfo or mysensors gateway)
Bunch of OS THGR810n (5)
Some THN122
1 WGR800 and PCR800
Some BMP085
Bunch of TS34C (4)
Bunch of DIO plugs (3)
Teleinfo
Many Mysensors devices (Temp, Hygro, ...)
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post by waltervl »

Can you send a serial command to arduino/mysensors so it sets the pattern?
Because then Domoticz can send that command too.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
qqlapraline
Posts: 19
Joined: Saturday 11 January 2014 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post by qqlapraline »

Yes, I can do that. But how would domoticz send me such a command ? V_Custom / V_text ?
3 Raspberry PI (Raspbian + Rfxcom, teleinfo or mysensors gateway)
Bunch of OS THGR810n (5)
Some THN122
1 WGR800 and PCR800
Some BMP085
Bunch of TS34C (4)
Bunch of DIO plugs (3)
Teleinfo
Many Mysensors devices (Temp, Hygro, ...)
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
qqlapraline
Posts: 19
Joined: Saturday 11 January 2014 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post by qqlapraline »

Not sure to know how to send data to serial entry of a remote MySensors device using a script…:(
3 Raspberry PI (Raspbian + Rfxcom, teleinfo or mysensors gateway)
Bunch of OS THGR810n (5)
Some THN122
1 WGR800 and PCR800
Some BMP085
Bunch of TS34C (4)
Bunch of DIO plugs (3)
Teleinfo
Many Mysensors devices (Temp, Hygro, ...)
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post by waltervl »

Can you do it from a terminal session on your Domoticz server? And if yes, what is the command you use?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
qqlapraline
Posts: 19
Joined: Saturday 11 January 2014 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RGB strip / MySensors / Patterns and modes

Post 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 :(
3 Raspberry PI (Raspbian + Rfxcom, teleinfo or mysensors gateway)
Bunch of OS THGR810n (5)
Some THN122
1 WGR800 and PCR800
Some BMP085
Bunch of TS34C (4)
Bunch of DIO plugs (3)
Teleinfo
Many Mysensors devices (Temp, Hygro, ...)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest