• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

GH TriggerCMD Smart Home stopped working

General Discussion
2
8
226
Loading More Posts
  • 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.
  • I
    Ilya Alshine
    last edited by Aug 7, 2020, 11:25 PM

    "TriggerCMD Smart Home" integration suddenly stopped working, keep getting "something went wrong" message. Tried unlinking/resetting numerous times without success. Other integrations, like TriggerCMD, are working fine.

    R 1 Reply Last reply Aug 8, 2020, 1:04 AM Reply Quote 0
    • R
      Russ @Ilya Alshine
      last edited by Aug 8, 2020, 1:04 AM

      @Ilya-Alshine, I just tested it myself and it worked for me.

      Did you try it on multiple devices? If you don't have another Google Home you could use your phone.

      Also, if you can give me a time when you have a failure I could look in the logs.

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • I
        Ilya Alshine
        last edited by Aug 8, 2020, 7:30 PM

        Yes, iPhone, iPad, and Android Galaxy tablet. IOS devices say "something went wrong", Android "could not establish connection". Tried many times last night and continued trying this morning.

        R 1 Reply Last reply Aug 9, 2020, 9:55 PM Reply Quote 0
        • R
          Russ @Ilya Alshine
          last edited by Russ Aug 10, 2020, 12:22 AM Aug 9, 2020, 9:55 PM

          @Ilya-Alshine, I found the problem. Your account has more than one command on the same computer with the same voice word. That was breaking the Smart Home skill/action because it was creating two virtual switches with the same name.

          I just changed the code so it creates only one virtual switch per computer / voice word combo, so you don't get duplicate switches. Now only the first command on a computer with a given voice word gets a virtual switch. If another command has the same voice word, it doesn't get a virtual switch.

          You should make sure each command has a different voice word so you can run all of them via Alexa or Google Home.

          Thank you for reporting this problem!

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          • I
            Ilya Alshine
            last edited by Aug 10, 2020, 12:23 AM

            Solved it - thanks!

            Quick questions:

            I am using parameters for the first time (to turn off/on X10). So when you allow params, is it just the dual "on" "off" parameters that get set automatically in Google Home corresponding to the switch?

            Do you need to point to an external bat file that specifies that two on/off command lines or can those be included in the config.json ??

            R 1 Reply Last reply Aug 10, 2020, 12:26 AM Reply Quote 0
            • R
              Russ @Ilya Alshine
              last edited by Russ Aug 10, 2020, 12:28 AM Aug 10, 2020, 12:26 AM

              @Ilya-Alshine, your command needs to run a .bat script that expects an " on" or " off" parameter appended to the command, like this:

              if "%1"=="on" "C:\Program Files (x86)\Kodi\kodi.exe"
              if "%1"=="off" taskkill /im kodi.exe

              Russell VanderMey

              I 1 Reply Last reply Aug 10, 2020, 12:50 AM Reply Quote 0
              • I
                Ilya Alshine @Russ
                last edited by Aug 10, 2020, 12:50 AM

                I understand. Perhaps it makes sense to allow for that to be part of the of triggercmd config.json to avoid using external bat files.

                R 1 Reply Last reply Aug 10, 2020, 1:11 AM Reply Quote 0
                • R
                  Russ @Ilya Alshine
                  last edited by Aug 10, 2020, 1:11 AM

                  @Ilya-Alshine, maybe. I'll think about that.

                  Russell VanderMey

                  1 Reply Last reply Reply Quote 0
                  3 out of 8
                  • First post
                    3/8
                    Last post