Tim Visser's second-half try proved enough for Edinburgh to hold on for victory over the Scarlets in the Magners League on Friday.
On several occasions in the game Edinburgh seemed a classy outfit offloading dextrously and making line breaks and scoring two exciting tries.
On other occasions they let their standards slip, notably in giving away silly penalties, not protecting the ball and allowing Scarlets to blast through powder-puff tackling.
However, the main thing from the home perspective was that at the start of the post-Six Nations run-in to the new Magners League play-offs was that the game was won.
Unlike many Welsh teams that venture to Scotland the Scarlets were quickly out their trap, forcing a five-metre line-out followed by a scrum.
When a ruck developed under the Edinburgh posts the home number eight Roddy Grant tried to kick the ball free and the deserved penalty was slipped home by Rhys Priestland in the fourth minute.
Late call-offs by Edinburgh centres Nick De Luca (groin) and Ben Cairns (hamstring) had produced a very different back line from the one originally chosen with international centre Simon Webster given his second start of the season.
He was prominent in the 12th minute, released after good work by Mark Robertson.
The ball got into the visitors' 22 and when they went offside Phil Godman kicked the simple penalty to tie the score.
Edinburgh attacked down the other wing with Tim Visser and Ross Rennie prominent, producing another penalty which was slotted home to give Edinburgh the lead after 14 minutes.
With both backs and forwards offloading Edinburgh then enjoyed a good spell crowned by a magnificent try by Grant in the 27th minute.
Following a Robertson up-and-under plus chase the ball was fed to the number eight well outside the Scarlets 22 but he found a way through the traffic and then accelerated to score under the bar with Godman converting.
Instead of pulling away Edinburgh found themselves under the cosh.
Scarlets left winger Andy Fenby shot up his wing and when the ball came inside crisp handling involved Priestland, David Lyons and Phil John with the latter touching down and Priestland converting.
Errors by Robertson and Jim Thompson allowed the visitors to stay on the attack but Edinburgh were able to go in leading 13-10.
Edinburgh's restart brought an immediate try. Mike Blair broke clear on halfway and kicked left where the ball broke to Visser who scored but Godman could not convert.
Priestland and Godman then exchanged penalties before Edinburgh got a lucky break when Scarlets replacement hooker Matt Rees charged down and secured Blair's clearing kick but put a foot in touch as he 'scored' from seven metres.
A drop goal from Godman on 60 minutes seemed to have eased Edinburgh away but a try from Fenby that started innocuously but left numerous Edinburgh players looking at one another, converted by Dan Newton, narrowed the home lead to 24-20 and a nervous last 10 minutes ensued.
Tries: Grant, Visser
Pens: Godman 3
Drop goal: Godman
For the Scarlets:
Tries: John, Fenby
Cons: Priestland, Newton
Pens: Priestland 2
Edinburgh: 15 Jim Thompson, 14 Mark Robertson, 13 Ben Cairns, 12 Nick De Luca, 11 Tim Visser, 10 Phil Godman, 9 Mike Blair (captain), 8 Roddy Grant, 7 Ross Rennie, 6 Alan MacDonald, 5 Steve Turnbull, 4 Scott MacLeod, 3 Geoff Cross, 2 Andrew Kelly, 1 Kyle Traynor.
Replacements: 16 Ross Ford, 17 Allan Jacobsen, 18 Jim Hamilton, 19 Scott Newlands, 20 Greig Laidlaw, 21 David Blair, 22 John Houston.
Scarlets: 15 Daniel Evans, 14 Lee Williams, 13 Regan King, 12 Jonathan Davies 11 Andy Fenby, 10 Rhys Priestland, 9 Martin Roberts, 8 David Lyons (capt), 7 Richie Pugh, 6 Josh Turnbull, 5 Dominic Day, 4 Damian Welch, 3 Rhys Thomas, 2 Ken Owens, 1 Iestyn Thomas.
Replacements: 16 Deacon Manu, 17 Matthew Rees, 18 Lou Reed 19 Rob McCusker, 20 Tavis Knoyle, 21 Daniel Newton, 22 Gareth Maule.
Referee: Peter Fitzgibbon (Ireland)
Assistant Referees: Iain Heard (Scotland), Graeme Marshall (Scotland)