Jeedom and RGB control
-
Hello to all,
I'm building an actuator with the RGB type to control the color of my RGB dot in the garden.
Hardware is not a big trouble, I work with an ARDUINO MEGA2560 and the communication is good
between MySensors and Jeedom.The question is about the software, for the first step, i just want to send color from Jeedom to my node
and do some debug via the Serial Monitor. This part is working from Jeedom to the Node, i can see the payload
in String format #FFFFFF (for white), then the sensor is sending back the info because ack is asked by jeedom, the payload has the good value #FFFFFF (or any other values) but Jeedom is not reconising the #FFFFFF value.Now if I send manualy info in V_RVB format, i need to send it without # to allow jeedom to understand.
Here is my simple code:
#define MY_DEBUG #define MY_RADIO_RFM69 #define MY_RFM69_NEW_DRIVER #define MY_RFM69_CS_PIN 53//10 // NSS. Use MY_RFM69_CS_PIN for the development branch. #define MY_RFM69_IRQ_PIN 21 #define MY_RFM69_IRQ_NUM 2 #define MY_NODE_ID 101 #include <MySensors.h> #define CHILD_SET_RGB_COLOR 0 /////////////////////// void setup() { pinMode(LED_BUILTIN, OUTPUT); } /////////////////////// void presentation() { present( CHILD_SET_RGB_COLOR , S_RGB_LIGHT , "Set color" ); sendSketchInfo("Light Actuator", "1.0"); } //////////////////////// void loop() { digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); // turn the LED off by making the voltage LOW delay(500); } ///////////////////////// void receive(const MyMessage &message) { Serial.print(" Reception message ID : "); Serial.print(message.sensor); Serial.print(" type : "); Serial.print(message.type); Serial.print(" paylod : "); Serial.println(message.getString()); }
If someone has any kind of idea, it would be super, thanks for your help
Suggested Topics
-
Vera Inclusion Not Working
Troubleshooting • 3 Apr 2014, 04:52 • MisterE 16 Apr 2014, 17:03 -
Mysensors et dual Bus
Jeedom • 7 Mar 2022, 15:13 • JeeLet 9 Mar 2022, 20:49 -
Jeedom controller and gateway on the same Raspi
Jeedom • 20 Dec 2018, 09:17 • stef 22 Dec 2018, 14:06 -
Presentation of a repeater / a node
Jeedom • 20 Sept 2017, 11:32 • Banenabos 20 Sept 2017, 13:58 -
Jeedom controller and MQTT Gateway
Jeedom • 11 Mar 2020, 17:54 • maler 15 Mar 2020, 22:36 -
MySensors + Irrigation controller sketch with Jeedom -> passing V_Var1, V_Var2 and V_Var3 at node request
Jeedom • 9 Nov 2020, 14:37 • Francisco_Elias 9 Nov 2020, 14:37