sorry for the bad title. I try to automate something with the new Minecraft integration.
There is a sensor called sensor.minecraftserver_players_online which contains an array of the currently players. You can view it with the following template:
If someone is online you get a list of the usernames like this:
‘[‘PlayerA’, ‘PlayerB’, ‘PlayerC’]’
I want to make some automations based on users which are going online or offline.
So I need a trigger when a username is in the list and when a username is going out of the list.
Can someone help me with this?
there are multiple usernames inside the attribute.
Your idea sounds good but how do I check if there is a username inside the list when there a more then one in it?