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
    void receive(const MyMessage &message)
      Serial.print("  Reception message ID : ");
      Serial.print("  type : ");
      Serial.print("  paylod : ");

    If someone has any kind of idea, it would be super, thanks for your help

Log in to reply

Suggested Topics

  • 19
  • 1
  • 6
  • 2
  • 3
  • 4