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
X

xlcnd

@xlcnd
About
Posts
12
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • An HASS service to send messages to nodes
    X xlcnd

    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**!

    Home Assistant homeautomation home assistant home-assistant

  • An HASS service to send messages to nodes
    X xlcnd

    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.

    Home Assistant homeautomation home assistant home-assistant
  • Login

  • Don't have an account? Register

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