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

    Cannot trigger any command (SmartHome / Mac)

    Alexa
    2
    8
    160
    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.
    • G
      gajahduduk
      last edited by gajahduduk

      New user here. I have installed the Mac agent (see separate thread on related problems). Account created, token accepted, etc. Alexa TriggerCMD SmartHome skill enabled and linked to account.

      I am at a loss on how to trigger any command with alexa. The default "Alexa, turn on calculator" > alexa: "welcome to calculator" (etc) -- activates an internal skill.

      I created a new command with "music" in the voice field, and an osascript to play music in the command field:

      osascript -e 'tell application "music" to play'
      

      I say, "Alexa turn on music" > it plays something on Amazon music.

      I changed the voice field to "elephant", and say "Alexa turn on elephant" > Alexa makes a "success" chime but does nothing.

      I say "Alexa elephant" > alexa makes an elephant sound with a "zoo keeper" skill

      Is there a log to view here?*

      What else to try?

      what if I don't want to use the "turn on" syntax, but instead, say "alexa play mac music?" ?

      EDIT: *found the way to "view runs" on "view triggers". I was able to run commands from the web interface as expected. (by the way, first time i had to grant permissions for TCMD to control apps; privacy&security>automations). alexa skill, however, still does nothing.

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @gajahduduk
        last edited by Russ

        @gajahduduk, if you linked the TRIGGERcmd Smart Home alexa skill to your TRIGGERcmd account, you should have a device in your Alexa device list for each of your commands that have a voice word.

        If you have a calculator device, Alexa will turn it on if you say turn on calculator, but Alexa will think you want to play music if you say turn on music.

        You can't say "Alexa, play mac music" because you can't "play" an Alexa smart home device - you can turn it on though.

        Russell VanderMey

        G 1 Reply Last reply Reply Quote 0
        • G
          gajahduduk @Russ
          last edited by

          @Russ Thanks you.

          It is linked. No devices show up in the Alexa device list for any of the two commands that have a voice word. (Calculator, Elephant).

          IMG_6443.PNG

          IMG_6444.PNG

          Screenshot 2024-11-22 at 7.34.27 PM.jpg

          Screenshot 2024-11-22 at 7.42.46 PM.jpg

          Screenshot 2024-11-22 at 7.45.16 PM.jpg

          RussR 1 Reply Last reply Reply Quote 0
          • RussR
            Russ @gajahduduk
            last edited by Russ

            @gajahduduk, thanks for the screenshots.

            Please go into your profile page and make sure your MacStudio.local computer is your default computer. Or, make sure that computer has a Voice Name. One or the other is necessary for Alexa to create devices for your computers.

            I recommand making it your default computer so you can just say, "Alexa, turn on calculator" rather than "Alexa, turn on calculator on mac" (assuming you'd make the Voice Name "mac").

            99215f53-dc95-4770-8e51-0fe1f7ea469d-image.png

            https://docs.triggercmd.com/#/./SmartHomeSwitches

            Russell VanderMey

            G 1 Reply Last reply Reply Quote 0
            • G
              gajahduduk @Russ
              last edited by gajahduduk

              @Russ Hi. Thanks! Got it to work and yep that was it: I hadn't set a default computer. If the need to explicitly set a default computer was mentioned somewhere obvious in the installation instructions, I missed it. I would suggest the first computer added is automatically made the default computer until it's changed.

              edit: I see in the link you provided above that "The first computer in your account is your default computer by default". However mine was not.

              RussR 1 Reply Last reply Reply Quote 0
              • RussR
                Russ @gajahduduk
                last edited by Russ

                @gajahduduk, the first computer is supposed to be your default computer. If you delete it and recreate it I don't think it makes the new one your default.

                I'm glad you figured it out. Sorry if the system failed to make your first computer your default.

                Russell VanderMey

                G 1 Reply Last reply Reply Quote 0
                • G
                  gajahduduk @Russ
                  last edited by

                  @Russ thanks. i did not delete it. i came in hot as a newbie, made minimal changes. some error there, or maybe had to do with the crash.

                  also purely on a side note, I made the voice command "mac music" and it worked, to my surprise. Both Siri and Alexa are very aggressive in interpretting anything having to do with music (tunes, jukebox, songs, etc.) as an intent to play random shit from their poor cloud services.

                  RussR 1 Reply Last reply Reply Quote 0
                  • RussR
                    Russ @gajahduduk
                    last edited by Russ

                    @gajahduduk, changing the command's voice word might be what fixed it. That deletes and recreates the Alexa device.

                    Russell VanderMey

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post