I'm not quite sure what the spool of yellow wire has to do with things. Yellow usually means a switched hot circuit like you'd find inside a ceiling fan.