Group Details Private

administrators

Member List
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 1.0.47 not installing, no log

    Hi, Russ. I saw in the New comments that you'd posted an update so went to install it. The app updating itself failed so I downloaded the new installer.

    The install failed and I wanted to prune down the log so that only that attempt was in there (less clutter) so I cleared it out and went to reinstall again BUT, when it failed, the log was empty. That said, there were multiple mentions in the log of not having access to "C:\Users\User\AppData\Local\Discord" which seemed odd but I set that folder for Everyone's access which didn't help.

    Any ideas?

    (Fully updated Win11 Home)

    posted in General Discussion
  • 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