TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Russ
    3. Posts
    • Profile
    • Following 1
    • Followers 42
    • Topics 217
    • Posts 2,601
    • Best 164
    • Controversial 6
    • Groups 1

    Posts made by Russ

    • RE: Triggers appearing in view runs but not actually triggering.

      Thanks @Leron-Tolmachev .

      posted in Mac
      RussR
      Russ
    • RE: Triggers appearing in view runs but not actually triggering.

      @Leron-Tolmachev, I don't know why the direct from HA path isn't working. I'll see if I can reproduce the issue, but in the meantime I suggest disabling it so you can trigger commands from HA via the Internet. It seems like the connection from the agent to HA isn't working. Maybe I need to add logging to determine that.

      posted in Mac
      RussR
      Russ
    • RE: Triggers appearing in view runs but not actually triggering.

      @Leron-Tolmachev, I'm not sure why it's working via the Internet but not direct from HA.

      Can you try triggering a different command? Like the built-in calculator command?

      Also, if your command has parameters enabled, please try disabling parameters. I'm worried the "on" or "off" parameter is getting tacked on to the end of your command and messing up the command, although I'm not confident in that because if that was the problem, it should happen either way - direct from HA, or via the Internet (via the triggercmd.com cloud system).

      FYI, that "Ignoring duplicate trigger" is saying it got a trigger via triggercmd.com but ignored it because it originally came from HA, and you have the direct HA integration enabled.

      Can you share your command? Or ideally a screenshot from the GUI Editor? I'd like to see if I can reproduce it on my Mac.

      posted in Mac
      RussR
      Russ
    • RE: 1.0.47 not installing, no log

      @Xander, awesome. I'm glad that worked.

      posted in General Discussion
      RussR
      Russ
    • RE: TRIGGERcmd not starting at boot

      @trinib, I can't reproduce the problem with version 1.0.47. For me, within 10 seconds, it always transitions from "Waiting for internet" to the full menu after I re-enable wifi. It get the same result whether I rebooted without wifi or just closed and re-opened the agent without wifi.

      I don't use the background service (aka the TRIGGERcmdAgent windows service). I'll enable that and do more testing, but that shouldn't effect the tray icon because it's only for the foreground agent.

      FYI, the background service is not necessary unless you want to be able to run command while you're logged out. Most people don't need it.

      posted in General Discussion
      RussR
      Russ
    • RE: Triggers appearing in view runs but not actually triggering.

      @Leron-Tolmachev,
      I just realized you're not saying the command doesn't run. So please confirm: the command runs when you trigger it from HA, but it doesn't log "Command ran" in the runs list, correct?

      If so, that's a known issue with sending triggers direct from HA to the agent. The agent doesn't report that the command ran if the trigger came from HA. There wasn't an efficient way to report it because the ID of the command isn't available in this direct local LAN offline context. If you need to see Command ran logged, you should disable the offline HA integration in the agent config.

      HA does still send the trigger to triggercmd.com though (which is logged in the Runs list) so cloud integrations (Zapier, Alexa routines, IFTTT, Make, etc) will still trigger if HA can access triggercmd.com when the command is triggered.

      posted in Mac
      RussR
      Russ
    • RE: Triggers appearing in view runs but not actually triggering.

      @Leron-Tolmachev, if you have parameters enabled, please try turning that off because that might explain why it works when you click the green Trigger button on the triggercmd.com website and it doesn't when you run the command via Home Assistant locally.

      631a206f-abb9-49c6-8cb8-1990e459c8a6-image.png

      If parameters are enabled, Home Assistant will send on or off as the parameter, so " on" or " off" will be appended to the end of your command, which could be producing an invalid command.

      Alternatively you could fill in the Off Command field, and that command will run when you toggle the HA switch off.

      posted in Mac
      RussR
      Russ
    • RE: Triggers appearing in view runs but not actually triggering.

      @Leron-Tolmachev, awesome. Thank you for confirming that works.

      For the offline config, did you generate a long-lived access token from this page?
      http://homeassistant.local:8123/profile/security

      And you pasted that into the that Home Assistant Token field in your Home Assistant Offline Configuration page?

      Also, you can check your ~/.TRIGGERcmdData/debug.log file for clues.

      posted in Mac
      RussR
      Russ
    • RE: Triggers appearing in view runs but not actually triggering.

      @Leron-Tolmachev, good, thank you for confirming that's working.

      If you've enabled the Home Assistant Offline Configuration, please try disabling it, then restart the agent. That should allow the agent to run your commands via the Internet (HA -> triggercmd.com -> agent).

      d2be9cb0-bd1b-4ae8-977b-ff399a7387e9-image.png

      I'm thinking maybe the agent is ignoring the commands from the triggercmd.com server because the offline configuration is enabled but not working yet. It does that to avoid running your command twice - once directly from HA, and again from triggercmd.com.

      If you want to get HA offline to work, please confirm your Home Assistant server is accessible at http://homeassistant.local:8123 from your laptop.

      posted in Mac
      RussR
      Russ
    • RE: Add two commands in a single trigger

      @Carlos-Junior, you could create a script with two commands in it like this:

      taskkill /f /fi "USERNAME eq %USERNAME%" /fi "WINDOWTITLE ne"
      shutdown /s /f /t 0
      

      Then your command would run that script with a command like this:

      c:\scripts\close_all_shutdown.bat
      

      If you don't want to create a script, you can generally run multiple commands with one command line by separating the commands with && like this:

      taskkill /f /fi "USERNAME eq %USERNAME%" /fi "WINDOWTITLE ne" && shutdown /s /f /t 0
      
      posted in Windows
      RussR
      Russ
    • RE: Triggers appearing in view runs but not actually triggering.

      @Leron-Tolmachev, I'm still not sure whether it works when you click the green Trigger button on the triggercmd.com website. It looks like this:

      00779bb1-c7a0-431d-a039-95a8841fe02f-image.png

      We need to make sure that works before moving on to HA config.

      When you click that green play button in the GUI Editor, that only tests running the command locally, not via the TRIGGERcmd cloud service.

      posted in Mac
      RussR
      Russ
    • RE: Triggers appearing in view runs but not actually triggering.

      @Leron-Tolmachev, did you install the TRIGGERcmd agent on your Macbook?
      You can download it from the bottom of the triggercmd.com home page.

      If so, are you able to run the command with the green Trigger button from your account on the triggercmd.com website?

      posted in Mac
      RussR
      Russ
    • RE: 1.0.47 not installing, no log

      @Xander, thank you for reporting this. Would you please try rebooting and trying the install again?

      I tried the upgrade on 2 Windows 11 PC's and 1 Windows 10 PC so far and it worked for me. It took about 20-30 seconds to get started after I clicked the update option in the tray menu, but I soon got this install progress indicator:

      6e1e5c6c-d264-416c-9f6b-a1bd49d5e296-image.png

      ... and now I have the new 1.0.47 version:

      969b65b0-da50-40e4-a767-cfcfaad86621-image.png

      What version shows in Apps > Installed apps ? This is what I see:

      2373143f-4d9e-41d9-af92-bacaa2079a46-image.png

      I wonder if you have the new version or the old one, or neither.

      I'll keep testing the install on other computers. If I see an issue I'll pull this version and put 1.0.46 back.

      About it showing Discord in the install log - the agent uses the Squirrel installer and I've seen it mention other applications during the install. I don't know why - it's sort of a black box to me, but I can tell you that's normal and you can ignore it. I suspect Discord also uses the Squirrel installer. I know Slack does (for example).

      posted in General Discussion
      RussR
      Russ
    • RE: TRIGGERcmd not starting at boot

      @trinib, I just released version 1.0.47 for Windows that will show the icon with a "Waiting for internet" message until the Internet is connected, then it will show the full tray icon menu.

      Would you mind testing it? I tested it and it seems to work well.

      posted in General Discussion
      RussR
      Russ
    • RE: Powershell scripts no longer working

      @kellanist, great. That makes sense.

      posted in General Discussion
      RussR
      Russ
    • RE: Powershell scripts no longer working

      @kellanist, the debug.log should show something like this when running the command remotely, including from the green Trigger button on the website:

      triggercmd.com data:
      {
        trigger: 'Logger',
        id: '656748449bbd61001bbde2f1',
        sender: 'website',
        params: null
      }
      Running trigger: Logger  Command: d:\tools\logger.bat generic %date% %time%
      stdout:
      stderr:
      

      Can you show me what happens when you run that command from a cmd prompt rather than a powershell prompt, and make sure it's running non-elevated, (aka not "as administrator"). I'm hoping that will fail in the same way and we'll see the error.

      posted in General Discussion
      RussR
      Russ
    • RE: Powershell scripts no longer working

      @kellanist, can you show me your command? I wonder if you need to prefix it with powershell or something, like:

      powershell c:\scripts\yourscript.ps1
      

      Also, please check your debug.log log for more output. I might give the reason it's failing and returning error code 1.

      Also, please confirm you're on the latest version of the agent, which is 1.0.46 as of today.

      posted in General Discussion
      RussR
      Russ
    • RE: TRIGGERcmd not starting at boot

      Thanks @trinib, and thank you for reporting the problem. I should be able to reproduce it and fix it in the next version. I thought I had it fixed but apparently not.

      EDIT: I confirmed if the agent starts and can't access the Internet, it closes. It should keep trying to connect, so I'll fix this soon.

      EDIT2: Actually, when I went to fix this I found that the agent does start, but it doesn't show the tray icon until the Internet connects. Fortunately that's a smaller problem, but I think it should show the icon with or without Internet. I'll work on that for next the agent version.

      posted in General Discussion
      RussR
      Russ
    • RE: A JavaScript error occurred in the main process

      @Tiago-Ivanov-Lavinas, great. Not sure what happened the first time, but renaming that folder is like a fresh agent install.

      posted in General Discussion
      RussR
      Russ
    • RE: A JavaScript error occurred in the main process

      @Tiago-Ivanov-Lavinas, if it's the windows built-in, that's not the problem. You could try renaming the .TRIGGERcmdData folder and re-running the agent. The agent should recreate the folder, and populate it with the default files, like the agent was supposed to when you installed it originally. Sorry about this. I've never seen this issue before and I don't know how to reproduce it.

      posted in General Discussion
      RussR
      Russ