Skip to content
  • Home
  • 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
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. English
  3. Scripting / Logic
  4. JavaScript
  5. how to stop instance of an adapter ?

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.2k

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

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.5k

how to stop instance of an adapter ?

Scheduled Pinned Locked Moved JavaScript
5 Posts 3 Posters 875 Views 2 Watching
  • 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
    koburg
    wrote on last edited by
    #1

    how do I stop an instance of an adapter like Synology.0.stop don't seem to work

    please make a small script example if you like to help me.

    i want to stop the instance when a variable is true.

    paul53P 1 Reply Last reply
    0
    • K koburg

      how do I stop an instance of an adapter like Synology.0.stop don't seem to work

      please make a small script example if you like to help me.

      i want to stop the instance when a variable is true.

      paul53P Offline
      paul53P Offline
      paul53
      wrote on last edited by paul53
      #2

      @koburg
      See example for function extendObject()

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      K 1 Reply Last reply
      0
      • paul53P paul53

        @koburg
        See example for function extendObject()

        K Offline
        K Offline
        koburg
        wrote on last edited by
        #3

        @paul53

        great so script if a variable get true something like this ?

        
        if (getState("0_userdata.0.allan.New_object").val == true) {
          extendObject('adapter.system.synology.0', {common: {enabled: false}});
        }
        
        

        what else would I need ?

        paul53P 1 Reply Last reply
        0
        • K koburg

          @paul53

          great so script if a variable get true something like this ?

          
          if (getState("0_userdata.0.allan.New_object").val == true) {
            extendObject('adapter.system.synology.0', {common: {enabled: false}});
          }
          
          

          what else would I need ?

          paul53P Offline
          paul53P Offline
          paul53
          wrote on last edited by paul53
          #4

          @koburg
          Better with trigger:

          on({id: "0_userdata.0.allan.New_object", val: true}, function() {
             extendObject('adapter.system.synology.0', {common: {enabled: false}});
          });
          

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          K 1 Reply Last reply
          0
          • paul53P paul53

            @koburg
            Better with trigger:

            on({id: "0_userdata.0.allan.New_object", val: true}, function() {
               extendObject('adapter.system.synology.0', {common: {enabled: false}});
            });
            
            K Offline
            K Offline
            koburg
            wrote on last edited by
            #5

            @paul53 sorry but I can not get it working if the variable is true it is not disable/pause the instance nothing happen.

            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

            800

            Online

            32.5k

            Users

            81.7k

            Topics

            1.3m

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

            • Don't have an account? Register

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