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. Development
  3. IR node

IR node

Scheduled Pinned Locked Moved Development
7 Posts 4 Posters 1.5k Views 4 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.
  • skatunS Offline
    skatunS Offline
    skatun
    wrote on last edited by
    #1

    Hi
    I have connected my IR node to my serial gateway, however I have a wish that my controller(Opnehab on RPI) can send out NEC,xxxxxx to my gateway which then forwards it to the node. This way I do not need to recompile my node everytime I want to add a new IR command. Is it possible to achieve this? I had a glance at the IR code provided here:

    void incomingMessage(const MyMessage &message) {
      // We only expect one type of message from controller. But we better check anyway.
      if (message.type==V_LIGHT) {
         int incomingRelayStatus = message.getInt();
         if (incomingRelayStatus == 1) {
          irsend.send(NEC, 0x2AA22DD, 32); // Vol up yamaha ysp-900
         } else {
          irsend.send(NEC, 0x1EE1F807, 32); // Vol down yamaha ysp-900
         }
         // Start receiving ir again...
        irrecv.enableIRIn(); 
      }
    }
    

    How has other people implemented IR commands?

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      There are several threads on IR in the forum. https://forum.mysensors.org/topic/2413/ir-record-and-playback-module Is probably a good starting point.

      skatunS 1 Reply Last reply
      0
      • mfalkviddM mfalkvidd

        There are several threads on IR in the forum. https://forum.mysensors.org/topic/2413/ir-record-and-playback-module Is probably a good starting point.

        skatunS Offline
        skatunS Offline
        skatun
        wrote on last edited by
        #3

        @mfalkvidd , Thanks for the tip:) I saw some other IR codes in the forum, but @BartE code seems the most promissing. Do you think I can modify his code to achieve what I want?

        On OpenHab which I use as controller I will then send something similiar to this then when I want(single button in OH): to turn on my TV, select correct input source on my stereo, select correct hdmi channel:

        12;7;1;1;32;NEC,0xa8bca
        12;7;1;1;32;NEC,0xa54bca
        12;7;1;1;32;NEC,0xa62ca
        
        1 Reply Last reply
        0
        • CrankyCoderC Offline
          CrankyCoderC Offline
          CrankyCoder
          wrote on last edited by
          #4

          Has anyone done any testing with having your IR codes stored at the controller?

          A while back I had played with having my IR codes stored on the controller in a mapping file so I wouldn't have to recode my IR blaster each time I wanted a new IR code added.

          However, this was all done with my blaster being over network not RF.

          Has anyone done anything with this type of setup over the mysensors RF?

          Home Automation Tinkerer
          www.CrankyCoder.net

          Controller: HomeAssistant in Kubernetes
          Gateway: MQTTClientGateway
          MySensors: 2.3

          martinhjelmareM mfalkviddM 2 Replies Last reply
          0
          • CrankyCoderC CrankyCoder

            Has anyone done any testing with having your IR codes stored at the controller?

            A while back I had played with having my IR codes stored on the controller in a mapping file so I wouldn't have to recode my IR blaster each time I wanted a new IR code added.

            However, this was all done with my blaster being over network not RF.

            Has anyone done anything with this type of setup over the mysensors RF?

            martinhjelmareM Offline
            martinhjelmareM Offline
            martinhjelmare
            Plugin Developer
            wrote on last edited by
            #5

            @Jason-Brunk

            It's now possible in home-assistant.

            https://forum.mysensors.org/topic/3917/an-hass-service-to-send-messages-to-nodes/7

            1 Reply Last reply
            0
            • CrankyCoderC CrankyCoder

              Has anyone done any testing with having your IR codes stored at the controller?

              A while back I had played with having my IR codes stored on the controller in a mapping file so I wouldn't have to recode my IR blaster each time I wanted a new IR code added.

              However, this was all done with my blaster being over network not RF.

              Has anyone done anything with this type of setup over the mysensors RF?

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              @Jason-Brunk said:

              Has anyone done any testing with having your IR codes stored at the controller?

              Yes. See the link I posted above your post.

              1 Reply Last reply
              0
              • CrankyCoderC Offline
                CrankyCoderC Offline
                CrankyCoder
                wrote on last edited by
                #7

                Thanks! The looks alot like what I did with my non-mysensors stuff. So that is perfect!!

                Home Automation Tinkerer
                www.CrankyCoder.net

                Controller: HomeAssistant in Kubernetes
                Gateway: MQTTClientGateway
                MySensors: 2.3

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


                10

                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