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. Run a script when virtual button is pushed

Run a script when virtual button is pushed

Scheduled Pinned Locked Moved Development
6 Posts 4 Posters 2.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.
  • Sander StolkS Offline
    Sander StolkS Offline
    Sander Stolk
    wrote on last edited by
    #1

    Hi there,

    I would like to know if it's possible to present an switch to my gateway / Domoticz and when this switch is pressed in Domoticz it activates a script on the Arduino node which sends a IR signal once.
    Maybe it is even possible to distinguish several virtual buttons so several different scripts can run?

    Because I would like to control my airco unit without the remote from downstairs. So I can turn it on and off or change the temp.

    Is there anybody with such a script as a example?

    Tnx!

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BartE
      Contest Winner
      wrote on last edited by
      #2

      @Sander-Stolk You might want to use my RC record and playback project.
      http://forum.mysensors.org/topic/2413/ir-record-and-playback-module/7

      It works also under Domoticz, you might need to add additional switches for start recording.
      which sends a MySensor message of type V_IR_RECORD with the preset number as payload.

      I've just tried a pre programmed version of my RC module with Domoticz and when a preset value is decoded and received by Domitics it creates a Light switch for that code. And when pressing the light tile on Domiticz the RC modules receives back the V_IR_SEND message.

      W 1 Reply Last reply
      0
      • T Offline
        T Offline
        tbowmo
        Admin
        wrote on last edited by
        #3

        @Sander-Stolk

        There is an example sketch for controlling hvac units.

        They are a bit different, in that respect they don't use simple commands like on or off, like TVs do. They transfer a complete setup of temperature, fan speed etc with every button press. So they need a bit more than just record/playback of IR transmission.

        Sander StolkS 1 Reply Last reply
        0
        • T tbowmo

          @Sander-Stolk

          There is an example sketch for controlling hvac units.

          They are a bit different, in that respect they don't use simple commands like on or off, like TVs do. They transfer a complete setup of temperature, fan speed etc with every button press. So they need a bit more than just record/playback of IR transmission.

          Sander StolkS Offline
          Sander StolkS Offline
          Sander Stolk
          wrote on last edited by
          #4

          @tbowmo said:
          "They transfer a complete setup of temperature, fan speed etc with every button press."

          This I noticed because when I remove the battery the next press of a button is indeed temp, flow, speed en dry etc.
          I've got the RAW data and I'm sending the RAW data and this works. So I've got a script but I only need a trigger to execute it.
          The trigger is the only problem I have.

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

            found the sketch here
            https://github.com/mysensors/Arduino/tree/development/libraries/MySensors/examples/HeatpumpIRController

            1 Reply Last reply
            1
            • B BartE

              @Sander-Stolk You might want to use my RC record and playback project.
              http://forum.mysensors.org/topic/2413/ir-record-and-playback-module/7

              It works also under Domoticz, you might need to add additional switches for start recording.
              which sends a MySensor message of type V_IR_RECORD with the preset number as payload.

              I've just tried a pre programmed version of my RC module with Domoticz and when a preset value is decoded and received by Domitics it creates a Light switch for that code. And when pressing the light tile on Domiticz the RC modules receives back the V_IR_SEND message.

              W Offline
              W Offline
              Wackid
              wrote on last edited by
              #6

              @BartE

              How do you record an IR in Domoticz? Can you explain in detail please? I tried several things bit can't get it working.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              18

              Online

              12.0k

              Users

              11.2k

              Topics

              113.4k

              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