Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. IoBroker Objekte per Powershell steuern?

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

IoBroker Objekte per Powershell steuern?

Scheduled Pinned Locked Moved Skripten / Logik
4 Posts 2 Posters 858 Views
  • 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.
  • K Offline
    K Offline
    Kuddel
    wrote on last edited by
    #1

    Hallo zusammen,

    da ich die komplette Logik von meiner CCU auf den ioBroker umgezogen habe, ist jetzt nur noch eine Variable über.

    Damit mein NAS nicht vom ioBroker ausgeschaltet wird, aktiviert mein BackupSkript auf meine Windows Server immer eine HM Variable (NAS-Backup) per Powershell.

    Wenn das Backup durch ist, wird diese Variable wieder ausgeschaltet. (Hintergrund: Das NAS soll nur aktiv sein, wenn mein Notebook, PC oder Kodi aktiv sind)

    Ist es möglich, dass ich das Objekt im ioBroker anlege und dann auch per Powershell schalten kann?

    Hat evtl. schon jamend Erfahrung gemacht mit Powershell und ioBroker?

    Danke schon einmal 🙂

    1 Reply Last reply
    0
    • AlCalzoneA Offline
      AlCalzoneA Offline
      AlCalzone
      Developer
      wrote on last edited by
      #2

      @Kuddel:

      Ist es möglich, dass ich das Objekt im ioBroker anlege und dann auch per Powershell schalten kann? `
      Wenn das Objekt existiert, gehts ganz einfach:

      https://github.com/ioBroker/ioBroker/wi … -state-set

      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kuddel
        wrote on last edited by
        #3

        Wenn ich die Befehle richtrig verstehe, muss ich sie alle auf meiner ioBroker VM ausführen oder?

        Wie mache ich das jetzt von einem Windows Server per Powershell aus?

        Einfach mittels plink.exe ?

        plink.exe -ssh root@192.168.4.30 -P 22 -pw ******* iobroker state set javascript.0.nas_backup true
        
        

        EDIT: Ja über PLINK geht es. Ich habe aber keine Ahnung ob das der sinnvollste weg ist ^^

        1 Reply Last reply
        0
        • AlCalzoneA Offline
          AlCalzoneA Offline
          AlCalzone
          Developer
          wrote on last edited by
          #4

          @Kuddel:

          EDIT: Ja über PLINK geht es. Ich habe aber keine Ahnung ob das der sinnvollste weg ist ^^ `
          Weiß ich auch nicht - aber wenns funktioniert… :lol:

          Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

          ioBroker
          Community Adapters
          Donate

          607

          Online

          32.4k

          Users

          81.4k

          Topics

          1.3m

          Posts
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          ioBroker Community 2014-2025
          logo
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Unread 0
          • Categories
          • Unreplied
          • Popular
          • GitHub
          • Docu
          • Hilfe