Hi!
I have installed the Minecraft binding so that I can monitor the activity and power down my server when it isn’t used. I followed the instructions described here: link. I have also installed the Spigot plugin.
There is no instruction of how to configure the “thing” so this time I have tried to configure the binding through Paper UI and then linked the channels to predefined items. It works, kinda, but I get a lot of strange activity in the logs and if I am to use the items in rules I would like the activity to be more stable.
Please see the following log messages:
2017-01-10 15:43:30.668 [INFO ] [.discovery.MinecraftDiscoveryService] - Start connecting to Minecraft server at: ws://192.168.10.146:10692/stream
2017-01-10 15:43:30.693 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update 'ON' for item 'MinecraftServer_Online' to handler for channel 'minecraft:server:online:online', because no thing with the UID 'minecraft:server:online' could be found.
2017-01-10 15:43:30.708 [ItemStateChangedEvent ] - MinecraftServer_Online changed from OFF to ON
2017-01-10 15:43:33.716 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update 'OFF' for item 'MinecraftServer_Online' to handler for channel 'minecraft:server:online:online', because no thing with the UID 'minecraft:server:online' could be found.
2017-01-10 15:43:33.728 [ItemStateChangedEvent ] - MinecraftServer_Online changed from ON to OFF
2017-01-10 15:44:33.714 [INFO ] [.discovery.MinecraftDiscoveryService] - Start connecting to Minecraft server at: ws://192.168.10.146:10692/stream
2017-01-10 15:44:33.729 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update 'ON' for item 'MinecraftServer_Online' to handler for channel 'minecraft:server:online:online', because no thing with the UID 'minecraft:server:online' could be found.
2017-01-10 15:44:33.756 [ItemStateChangedEvent ] - MinecraftServer_Online changed from OFF to ON
2017-01-10 15:44:36.757 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update 'OFF' for item 'MinecraftServer_Online' to handler for channel 'minecraft:server:online:online', because no thing with the UID 'minecraft:server:online' could be found.
2017-01-10 15:44:36.765 [ItemStateChangedEvent ] - MinecraftServer_Online changed from ON to OFF
2017-01-10 15:45:36.757 [INFO ] [.discovery.MinecraftDiscoveryService] - Start connecting to Minecraft server at: ws://192.168.10.146:10692/stream
2017-01-10 15:45:36.780 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update 'ON' for item 'MinecraftServer_Online' to handler for channel 'minecraft:server:online:online', because no thing with the UID 'minecraft:server:online' could be found.
2017-01-10 15:45:36.788 [ItemStateChangedEvent ] - MinecraftServer_Online changed from OFF to ON
2017-01-10 15:46:08.126 [INFO ] [craft.handler.MinecraftServerHandler] - Connection to minecraft server opened
2017-01-10 15:46:08.155 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update '0' for item 'MinecraftServer_Players' to handler for channel 'minecraft:server:online:players', because no thing with the UID 'minecraft:server:online' could be found.
2017-01-10 15:46:08.164 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update '8' for item 'MinecraftServer_MaxPlayers' to handler for channel 'minecraft:server:online:maxPlayers', because no thing with the UID 'minecraft:server:online' could be found.
My guess is that if I were to define the thing manually I would have more control and could perhaps avoid the warnings.
Also, there are more channels available according to the README.md but in order for me to utilze these I guess I would have to define the thing manually. The Paper UI will only find three server channels.
Help would be, as always, much appreciated!