I’ve done some searching and I know that there is a Minecraft Server integration available for HA. I just set up a Bedrock server. I noticed that the integration specifies that it’s Java only. I tried anyways and get an error after entering in the IP address and port.
Does anyone know of a way to connect to a Bedrock Server?
Shooting in the dark here, but is there a port that you need to reference in your URL? I’d like to see if you get something working. I’m thinking of setting up a server and would like to see it.
I just wrote a custom component to do this. This should work on Homeassistant version Core-2021.3.1 or later. I also did a PR, so maybe this will eventually make it into the built-in component.
Nice! Trying to install it now, but there’s one step i cant figure out: " 1. Copy the content of custom_components/Bedrock-Homeassistant into your custom_components/Bedrock-Homeassistant folder."
Where am i supposed to find the “custom_components/Bedrock-Homeassistant” folder? I have the File Editor addon in HA, and i found a folder called “Config/custom_components”, but theres no “Bedrock-Homeassistant” folder there.
There is a folder called “minecraft_server” there, but it does not contain a “bedrock-homeassistant”-folder, so it might be from the regular java-edition integration that i also have installed.
Seems like i didn’t need to do that step… I just went into integrations, add integration, minecraft and added (chose bedrock) and it seems to work from first look
As stated on the GitHub it is now available via HACS.
This is an addition to the standard Minecraft integration, which adds bedrock support to it.
As you already have a folder called minecraft_server I guess you already installed it via HACS? As the standard built-in component wouldn’t be under custom_components.
If so, you don’t need to install it manually again. You should be able to add a new MC server via the standard integration and select Bedrock there
There’s two more thing i’ve found
1)
Is it not possible to see the list of players on the server?
For the java-edition you can see the players listed, and in node-red i’m extracting it to see if certain players are online. There i find ut under
msg.data.new_state.attributes.players_list
I’ve checked the “device” and all 8 “entities” in HA but i can’t seem to find the names of the connected players anywhere?
The integration seems to update real slow? I can’t test the java-server right now, but that usually updates the player count etc in HA imidiately. When i connect/disconnect from the bedrock server it takes minutes before the player count is updated. Is there a setting or something for i.e pollrate?
Glad you got it. The documentation was bad. I changed the incorrect folder name.
However, if you install via HACS (which I think you did), you do not need to do the manual installation steps.
This integration “overwrites” the builtin Java-only one. If you have the files in “custom_components/minecraft_server” and you have the have a setting to select “Bedrock”, you are using this one.
edit: You cannot see the players names, the python library this uses does not provide that information for bedrock. I wish it did. It looks like in const.py, there is SCAN_INTERVAL variable set to 60. Perhaps making that smaller will work, not sure as I just made change to the existing integration. I assumed both servers would update at the same rate.
Oh thanks.
I did install it through HACS yeah, but it wasn’t clear to me that i still didn’t need to follow the steps, that could probably be my mistake…
Also thanks for the clarfification, if you ever catch the player-names becoming available i’d be glad if you implemented it too
I’ll see if i can figure out testing changing SCAN_INTERVAL to a smaller number, but it feels like it’s been more than 60 seconds in some cases for HA to get updated, so maybe i’ts not the setting we’re looking for…
Player list will not be supported until the python library this integration uses (https://github.com/py-mine/mcstatus/) supports it. My guess is it is not possible, or it would already be there.
Hi all. Sorry for replying this old thread. But I wanted to inform you that Bedrock Edition servers are now supported in the (built-in) Minecraft Server integration beginning with HA core 2023.11.
I fear you misunderstood something. The Minecraft Server integration provides status information of your server instance. It does not provide the actual server. More information can be found in the documentation.
I will depreciate my old integration. Built in one works well.
If you want to run a bedrock server using home assistant, you can use my addon. Only made it for bedrock: https://github.com/jdeath/homeassistant-addons/tree/main/minecraftbe