I have an easy question. Did mysensors plugin support V_RGB messages?
-
ESPurna/MySensors RGB Lights
-
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Hm ok that’s bad. Is there another way to control a RGB strip? Following options to control the strip:
A) Arduino
ESP12E
C) Raspberry PiOption C was really bad. Resource wasting. I would like option A) maybe option . Is there a way to control the strip with esp easy? Something like that?
Did anyone have some experience to share with me?
-
I use an selfmade mysensors-arduino RGBW lighting of my kitchen, running about a year now w/o any problems.
So far I remember it was a bit tricky to sent right messages and use it in arduino and it’s still not perfekt because of missing methods in pimatic.
I have to find it and will send the info here later. -
I’m using class: DummyLedLight as UI control/switch and detect its changes with rules.
This myledlight gives you .color ; .power ; .mode ; .brightness props to act with.
dim myledlight1 to 50% and after 2 minutes set myledlight1 to #FF4010
When detecting changes in some rules I sent custom messages from this “myledlight1” to the mysensors device like this:
When $myledlight1.color changes Then send custom "V_VAR1" nodeid: "13" sensorid: "2" cmdcode: "$myledlight1.color" .. or $myledlight1.brightness changes .. send custom "V_PERCENTAGE" nodeid: "13" sensorid: "0" cmdcode: "$myledlight1.brightness" .. or $myledlight1.power changes .. send custom "V_STATUS" nodeid: "13" sensorid: "1" cmdcode: "$myledlight1.power"
Arduino with mysensors is using codes like this:
... MyMessage dimmerMsg(CHILD_ID0, V_PERCENTAGE); MyMessage onoffMsg(CHILD_ID1, V_STATUS); MyMessage rgbMsg(CHILD_ID2, V_CUSTOM); ... ... if(message.type == V_VAR1){ rgbHex = message.getString(); decodeColorString(rgbHex); //parser seperating strings .. } ..
Don’t wonder, ther is no pimatic device for this RGBW mysensors, it’s info is just sent as raw codes to “nowhere” …
-
I found a script in mysensors forum. This script use RGBW and this command comes from MQTT…
https://forum.mysensors.org/topic/6765/rgb-led-strip
Otherwise… I have an ESP15E… You can flash this with esp easy… There are some china bulbs out there and this kind will be flash with esp easy. Maybe this is a way for integration into my network. And now how can pimatic send messages then to esp easy.
Another project:
I have enough ESP12E laying around and i can use this kind to control the light… But i want more… Sunrise, Sunset, Clouds or Thunderstorm with lighting.
-
OK, i flashed an ESP12F with ESPUrna and i can controll my RGB stripe now via Web-Interface. Did somebody know the best way to controll ESPUrna now via pimatic?
There are someways: MQTT or HTTP API
Via MQTT i found only a dimmer…
Edit: Edit the main thread title
-
Is there a color picker plugin for pimatic???
I think there where also a way via REST API from ESPurna. API accept colors like #FF0000.
-
No sorry, there’s no such plugib as far as I know.
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Hmmm… Seems to be pimatic is not the best solution for RGB Lichts.
Ok thanks for your help…