Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95385

Automation based on list entries of a sensor

$
0
0

@murmusbahnus wrote:

Hi all,

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:

{{states.sensor.gruebelgrotte_players_online.attributes.players_list}}’

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?

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>