Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Jeedom
  4. Jeedom and RGB control

Jeedom and RGB control

Scheduled Pinned Locked Moved Jeedom
1 Posts 1 Posters 36 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Robert77
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    30

    Online

    11.7k

    Users

    11.2k

    Topics

    113.1k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular