I can drop the power provider, drop a substation or power pole, next to it, but I get the following error when trying to connect the substation or power pole to the power grid (only when in conjunction with a power provider):
Error while running event ElectricTrain::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
ElectricTrain/lua/logic_event_handler.lua:99: in function <ElectricTrain/lua/logic_event_handler.lua:62>
Any clues?