NEWS
how to stop instance of an adapter ?
-
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.
-
@koburg
See example for function extendObject() -
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 ?
-
@koburg
Better with trigger:on({id: "0_userdata.0.allan.New_object", val: true}, function() { extendObject('adapter.system.synology.0', {common: {enabled: false}}); });
-
@paul53 sorry but I can not get it working if the variable is true it is not disable/pause the instance nothing happen.