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. General Discussion
  3. Which controller supports AC or TV controlling by IR sensor ?

Which controller supports AC or TV controlling by IR sensor ?

Scheduled Pinned Locked Moved General Discussion
12 Posts 3 Posters 5.7k Views 3 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.
  • T Offline
    T Offline
    ToniA
    wrote on last edited by
    #2

    It's not that straightforward to control IR devices, you need to understand something about the protocols etc. But there are libraries for this, for example Ken Shirriff's IR library.

    For TV's, I'd suggest looking at this: http://z3t0.github.io/Arduino-IRremote/

    What comes to air conditioners / heatpumps, I've been working on the HeatpumpIR library for Arduino: https://github.com/ToniA/arduino-heatpumpir

    Generally the media devices are much more simple, usually 32 bits are sent, and the command like like 'volume up' or 'switch to channel 3' etc. With air conditioners / heatpumps, the protocol is much more complex, as they typically send out the whole state information in the same data burst, usually this is several hundreds of bits of information.

    I have also started to integrate the A/C / heatpump control into Domoticz, but it's still a bit clumsy, as there's no real UI support in Domoticz yet. But I'm able to send IR commands from Domoticz through the MySensors network.

    Take a look at these links:
    https://github.com/mysensors/Arduino/tree/development/libraries/MySensors/examples/HeatpumpIRController
    http://www.domoticz.com/forum/viewtopic.php?f=34&t=7179#p69647

    ahmedadelhosniA 1 Reply Last reply
    0
    • T ToniA

      It's not that straightforward to control IR devices, you need to understand something about the protocols etc. But there are libraries for this, for example Ken Shirriff's IR library.

      For TV's, I'd suggest looking at this: http://z3t0.github.io/Arduino-IRremote/

      What comes to air conditioners / heatpumps, I've been working on the HeatpumpIR library for Arduino: https://github.com/ToniA/arduino-heatpumpir

      Generally the media devices are much more simple, usually 32 bits are sent, and the command like like 'volume up' or 'switch to channel 3' etc. With air conditioners / heatpumps, the protocol is much more complex, as they typically send out the whole state information in the same data burst, usually this is several hundreds of bits of information.

      I have also started to integrate the A/C / heatpump control into Domoticz, but it's still a bit clumsy, as there's no real UI support in Domoticz yet. But I'm able to send IR commands from Domoticz through the MySensors network.

      Take a look at these links:
      https://github.com/mysensors/Arduino/tree/development/libraries/MySensors/examples/HeatpumpIRController
      http://www.domoticz.com/forum/viewtopic.php?f=34&t=7179#p69647

      ahmedadelhosniA Offline
      ahmedadelhosniA Offline
      ahmedadelhosni
      wrote on last edited by ahmedadelhosni
      #3

      @ToniA Thanks a lot. This looks really interesting.

      Regarding your second link. The picture below ..
      alt text

      Did you define the names "Fan 1", "Fan 2", "Fan 3", "Fan 4", "Fan 5" ? and also the other string names ?
      If yes, then each button press sends the corresponding pattern which you encoded and then sent to mysensors using json or lua, correct ?

      Edit: I didn't go deeper in Domoticz yet and wonder how did you add them. Can you please a guide link for this ? Thanks.

      1 Reply Last reply
      0
      • ahmedadelhosniA Offline
        ahmedadelhosniA Offline
        ahmedadelhosni
        wrote on last edited by
        #4

        This is the new Panasonic hardware which I mentioned in my post
        https://www.domoticz.com/wiki/Panasonic_TV

        1 Reply Last reply
        0
        • T Offline
          T Offline
          ToniA
          wrote on last edited by
          #5

          All those three sensors are created on the 'dummy' hardware. The first two are new 'multiselector' devices, and the last one is a thermostat. The actual control happens on the event script, it will notice changes on any of those three ones, and then communicate with the MySensors node, using the MySensors devices (not shown on this screenshot, but they do exist in Domoticz).

          Yes, a device like PanasonicTV would be nice. But I think programming something like this is a bit beyond my current skills.

          ahmedadelhosniA 1 Reply Last reply
          0
          • T ToniA

            All those three sensors are created on the 'dummy' hardware. The first two are new 'multiselector' devices, and the last one is a thermostat. The actual control happens on the event script, it will notice changes on any of those three ones, and then communicate with the MySensors node, using the MySensors devices (not shown on this screenshot, but they do exist in Domoticz).

            Yes, a device like PanasonicTV would be nice. But I think programming something like this is a bit beyond my current skills.

            ahmedadelhosniA Offline
            ahmedadelhosniA Offline
            ahmedadelhosni
            wrote on last edited by ahmedadelhosni
            #6

            @ToniA looks like it is not as easy as I thought.

            I may have a problem in Version: 2.3867 which I have because I tried to make a new switch and set it as a "selector" but I can't add new "selector level" which I thought this sets the "Fan 1", etc .

            Thanks.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              ToniA
              wrote on last edited by
              #7

              Selector is a rather new feature in Domoticz, I don't remember when it first appeared... You may need to update to the latest beta first, I think the stable doesn't have it.

              ahmedadelhosniA 1 Reply Last reply
              0
              • T ToniA

                Selector is a rather new feature in Domoticz, I don't remember when it first appeared... You may need to update to the latest beta first, I think the stable doesn't have it.

                ahmedadelhosniA Offline
                ahmedadelhosniA Offline
                ahmedadelhosni
                wrote on last edited by ahmedadelhosni
                #8

                @ToniA I updated to V.2.4362 but still have a problem.

                I did so in the switches tab

                0_1454365414188_upload-5ddc500c-ea2d-4c57-aa3c-6f75cc2ec3e3

                but after I press save nothing happens.

                I reopen it again but nothing is viewed !

                0_1454365511883_upload-19d36118-a99a-47cd-95ff-d6870b7804b8

                Did you face something similar ?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  ToniA
                  wrote on last edited by
                  #9

                  The 'Level' 0 should be 'OFF' by default, maybe that's the problem, i.e. having 'OFF' twice? If you don't want to show 'OFF', check the 'Hide Off Level' checkbox. I didn't have any problems with this.

                  ahmedadelhosniA 2 Replies Last reply
                  0
                  • T ToniA

                    The 'Level' 0 should be 'OFF' by default, maybe that's the problem, i.e. having 'OFF' twice? If you don't want to show 'OFF', check the 'Hide Off Level' checkbox. I didn't have any problems with this.

                    ahmedadelhosniA Offline
                    ahmedadelhosniA Offline
                    ahmedadelhosni
                    wrote on last edited by
                    #10

                    @ToniA maybe I made a misleading example.

                    My problem is not with OFF twice. Even if I add any values the problem occurs.

                    Maybe I will install on a PI and test. Currently I am using windows.

                    1 Reply Last reply
                    0
                    • T ToniA

                      The 'Level' 0 should be 'OFF' by default, maybe that's the problem, i.e. having 'OFF' twice? If you don't want to show 'OFF', check the 'Hide Off Level' checkbox. I didn't have any problems with this.

                      ahmedadelhosniA Offline
                      ahmedadelhosniA Offline
                      ahmedadelhosni
                      wrote on last edited by
                      #11

                      @ToniA Hello again. I managed to impelemnt the dummy interface. No script yet. But i noticed that the android appliction does not show buttons but shows sliding.

                      0_1456190591522_Screenshot_2016-02-23-03-18-58.png

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        pjr
                        wrote on last edited by
                        #12

                        @ahmedadelhosni Its still wery new and the implementation is based on dimmer. This way you can get options from 0 to 100 and also its the reason the selector has separate on/off switch.

                        The problem is the mobile app. It just dont have proper implementation yet to show selector as buttons or dropdown.

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


                        22

                        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