Disabling entity with findbytag does not work

this is my code
image
its supposed to disable everything with that tag but it does absolutely nothing. If I change tag to name it works but only for one entity so I would like the tag to work

Hi @ALUCARD!

Currently you try to disable an array of entities. You can use forEach to disable all entities of an array. Below an example.

var ladders = this.app.root.findByTag("Ladder");
ladders.forEach(function(ladderEntity){
    ladderEntity.enabled = false;
}.bind(this));