cmdswitch2 -> Befehl auf Windows 10 PC ausführen?

  • Hallo,


    gibt es eine Möglichkeit, dass man per cmdswitch2 einen Befehl auf einem Windos 10 Rechner ausführen läßt?

    Homebridge und PC sind im selben LAN und es wäre mir egal, wenn ich das Passwort des PCs im Klartext abspeichern müsste.

    Aber wie geht man sowas an? Habt ihr da eine Idee?

  • Wenn du deinen "Befehl" für Windows auf der Konsolen-Ebene des RPi absetzen kannst und wenn dann auch noch genau das geschieht, was du möchtest, kannst du das natürlich 1:1 in cmdswitch2 umsetzen. Kommt halt darauf an, was für einen "Befehl" du meinst.


    Steht ja auch so in der Plugin-Beschreibung:

    ....

    Things to know about this plugin

    This plugin can only run CLI commands the same as you typing them yourself. In order to test if your on_cmd, off_cmd, or state_cmd are valid commands you need to run them from your CLI. Please keep in mind you will want to run these commands from the same user that runs (or owns) the HomeBridge service if different than your root user.

    ...

  • Danke, ja ich weiß wie cmdswitch funktioniert.


    Mir wäre es eigentlich darum gegangen, wie sich ein Linux Befehl/Script auf einen Windows 10 Rechner verbinden kann und dort Befehle (Batch Script) starten kann. Hat dazu jemand eine Idee?