Factorio → Home Assistant

by OLDIN_

Streams live server state (players, game state) to Home Assistant through a small relay running next to the server.

Utilities
3 hours ago
2.1
5
Owner:
OLDIN_
Source:
https://github.com/OLDIN/factorio-ha-bridge
Homepage:
https://github.com/OLDIN/factorio-ha-bridge
License:
MIT
Created:
20 hours ago
Latest Version:
0.2.0 (3 hours ago)
Factorio version:
2.1
Downloaded by:
5 users

Streams live state of a headless Factorio server to Home Assistant, so you can see what happens on a server that keeps running while you are away — and later get notifications or voice announcements about it.

This mod alone does nothing visible in game. It needs two companions:
- the relay that runs next to the server: factorio-ha-bridge
- the Home Assistant integration: ha-factorio

What it does (v0.1, proof of concept)

  • Game state in Home Assistant: running / paused / stopped / no connection
  • Players online and join/leave events
  • Home Assistant decides what the game collects; until then the mod sends only a small heartbeat

How it works

  • Only the server sends data, over UDP to localhost (helpers.send_udp). Start the server with --enable-lua-udp=34198.
  • Configuration arrives from the relay via an RCON command that in-game players cannot use.
  • No new items, recipes or entities. Safe to add to an existing save and to remove again.
  • Multiplayer-safe: clients do nothing except download the mod when joining.

Planned

Production lines that ran out of ingredients, depleted ore patches, biter attacks with position and losses, research, evolution, space platforms… See the roadmap.