Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. xlcnd
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by xlcnd

    • RE: An HASS service to send messages to nodes

      Let me complete the example given for the node when you use V_IR_SEND.

      In order to send IR codes you need to transform the
      code in an unsigned long:

          char ircode[11] = {0};  // in case your code takes the form of 0xE0E0FF0F
          ...
          if (message.type == V_IR_SEND) {
            String hexstring = message.getString();
            hexstring.toCharArray(ircode, sizeof(ircode));
            ...
            // get the code as an unsigned long
            unsigned long code = strtoul(ircode, NULL, 0);
      
            // with IRLib send the code to TV
            sendSAMSUNG(code);
            ...
      

      Very simple, ** but is hard to find an example**!

      posted in Home Assistant
      xlcnd
      xlcnd
    • RE: An HASS service to send messages to nodes

      Hi,

      Thanks for your promptly reply.

      I have a node that acts like a IR remote to one of the newest Samsung TVs. This node runs a sketch that extracts IR codes from received messages and send them to TV and returns a feedback message to HASS. The node (with id 40) has a child sensor (with id 3) and his of type S_IR and accepts messages with type V_IR_SEND. In HASS this (ms)sensor is defined as a sensor (his identity_id is sensor.ir_remote) and displays the IR code that was sent, but there is no way in HASS to send a given IR code (for instance in automation) to this node... so a service to do that would be nice.

      posted in Home Assistant
      xlcnd
      xlcnd