• 0 Votes
    2 Posts
    1k Views
    RussR
    @Matheus-de-Souza, it's showing "Command ran with error code 1" because your command is failing. Commands return error code 0 when they succeed. To troubleshoot, it would help to get the output of your command. You should be able to see the error if you run it manually from a cmd prompt. To open a cmd prompt, you can hold the Windows key and press R, then type cmd and press enter. [image: 1738361380166-9a53f208-d7ed-45ee-b14b-dec1f499230d-image.png] If the command runs fine in the cmd prompt but it fails when you run it with the TRIGGERcmd agent, you should copy/paste your command into a .bat file and redirect the command's output to a log file, and change your triggercmd command to run the .bat file. That way you can look in the log file to see the error. For example, you could create a script.bat file with these contents: yourcommand > c:\logs\script.log 2>&1 This part is to make stderr output go into your log, not just stdout: 2>&1 Notice I put the log file in a c:\logs directory. You'll need to create that directory first. Windows won't let you write to a file in c:\ by default.
  • Multiple users / profiles on windows 10

    General Discussion
    3
    0 Votes
    3 Posts
    880 Views
    L
    @Russ THANKS! Looks like that will work for me (but I bet you knew that )!
  • Reinstallation problem

    Windows
    6
    1
    0 Votes
    6 Posts
    2k Views
    RussR
    @Giuseppe-Sbirziola , I got your direct message. I'm glad that worked.
  • Installer wont start

    General Discussion
    9
    0 Votes
    9 Posts
    2k Views
    RussR
    @Rob-Turing, I don't know. I use Windows Defender and I wasn't able to reproduce the issue.
  • sending parameter to a home assistant TCMD switch

    Home Assistant
    5
    0 Votes
    5 Posts
    1k Views
    RussR
    Thanks @metablast. I've been thinking about how I could allow other parameters. Would you want to create an HA automation that triggers the command, and do you want the properties of the device that triggered the automation to be selectable as command parameters? I think I could build a way to do that.
  • Alexa ask to say turn on and after command

    Windows
    2
    0 Votes
    2 Posts
    783 Views
    RussR
    @Rafael-Estevam, what you say to Alexa will make more sense if you make the Voice field just computer instead of turn off computer. The formula is, "Alexa, turn on/off [voice word]." That's assuming you're using the TRIGGERcmd Smart Home skill. In this example, I can say "Alexa, turn on calculator." to open it. "Alexa, turn off calculator." to close it. [image: 1737035827026-7d94e408-a352-4c03-b195-3c512a638539-image.png]
  • Commands.json reverting to previous version

    Raspberry Pi
    8
    0 Votes
    8 Posts
    2k Views
    RussR
    @Al-S, do the new commands have a voice word? That's required for the skill to create devices.
  • Turning PC on (without WoL)

    General Discussion
    2
    0 Votes
    2 Posts
    1k Views
    XanderX
    @Greg-Larsen If you want to add hardware, a $5 smart plug (Aliexpress) would do the job of your $25 (+hub) suggestion. Set the BIOS to turn on when power is provided and you're done. I have my three monitors on one smart plug so when I say Good Morning to Alexa, she fires them up. I don't really need WoL so pressing the button is fine with me.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Issue when passing URL as parameter

    General Discussion
    3
    0 Votes
    3 Posts
    834 Views
    Felipe FanchiniF
    @Caio-Kenup I solved this problem including ^ just before &. So, as an example, I changed start www.youtube.com/watch?v=dQw4w9WgXcQ&autoplay=1 to start www.youtube.com/watch?v=dQw4w9WgXcQ^&autoplay=1 I believe that it will works to everybody that has a URL with character "&"
  • Problemas con Google Home

    Google Home
    5
    0 Votes
    5 Posts
    1k Views
    José Alberto RodríguezJ
    Hola @Russ ¡Feliz año nuevo! Finalmente, con el cambio en la versión, todo funcionó perfectamente. ¡Gracias por tu fantástico trabajo y soporte! ¡Éxitos!
  • Quick Home Assistant setup with Docker

    Home Assistant
    1
    0 Votes
    1 Posts
    674 Views
    No one has replied
  • 0 Votes
    8 Posts
    2k Views
    S
    @Russ bet man thank you so much for all of your help im new to this coding stuff its super weird to me, Im definitely gonna learn alot from being in this community lol
  • 0 Votes
    1 Posts
    517 Views
    No one has replied
  • Home Assistant Blueprints for TRIGGERcmd

    Announcements
    1
    4
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    1 Posts
    776 Views
    No one has replied
  • Offline triggers from Home Assistant

    Announcements
    1
    0 Votes
    1 Posts
    750 Views
    No one has replied
  • 0 Votes
    9 Posts
    5k Views
    xlPatriciaX
    Hello! I was using this script on my laptop and it was working normally. After formatting it this afternoon, I reinstalled everything again and got tcmd to work as it was before, but now it is not reading the battery %, it just keeps activating plugOn all the time regardless of how much battery is left. I don't understand scripts, so I apologize in advance for not being able to provide more information or details. If anyone can help me, I would be grateful. Just to let you know, I followed all the steps described here. I have tcmd utility in the C:\Windows folder, I downloaded BatteryInfoView.exe, I configured plugOn and plugOff in trigger_cmd and in Alexa and even so only plugOn is activated in a loop with Alexa's routines. Oh, and I apologize for having revived the topic. I thought it best to leave everything in the same place.
  • Alexa stops midway when reading long sentences

    General Discussion
    6
    0 Votes
    6 Posts
    1k Views
    RussR
    @tigor, great. I'm glad it's working.
  • Alexa report What Artist & What Song in Music

    Mac
    2
    0 Votes
    2 Posts
    1k Views
    G
    IMPORTANT NOTE on above you must make the sendresult.sh bash script executable. go to terminal and: cd ~/.TRIGGERcmdData/ chmod +x sendresult.sh