girlpunk / minecraft-home-assistant

Fork of Home Assistant's Minecraft Integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No attribute players_list in the sensor minecraft_server_players_online

Emeraude998 opened this issue · comments

Hello,

I'm using this custom integration as the one from Home Assistant Core doesn't seem to want to connect to my server.
But I'm facing the following issue. I want to be able to list the players currently connected to my server and I even made a card that should work:

Click for image

image

But it seems that there is no attribute corresponding to the players list for the sensor minecraft_server_players_online.

image

I checked the code in the sensor.py file and there should be one.

Can someone help me?

Hi,

To my knowledge the built-in integration still has a major flaw in it's design that means a large number of servers on the internet will not be compatible.

I don't really maintain this any more, but having a look through suggests the attribute may not be set if it cannot be retrieved from the server, or if the player list is empty. Could the latter be the case while you're testing?