If you have old cables without earth wires you must not install any metal switches or light fittings. Connect the green wire to your household ground wire copperbare wire.

What Are These Wires
Yellow wire light switch. It is not from age as we built the house and within 2 years they were yellowed. One of them has multiple swithes including a dimmerthe dimmer has not yellowed the rest of the switches have yellowed and the plate is still white. Wires are often black for live white for neutral and plain copper for ground. Well it certainly looks like that is the correct way it would be wired. The earth wires in the cable are bare copper and must be covered with greenyellow striped sleeving. Connect your white wires together and secure with wire nut.
This is a diagram of what youre automated hardwired light switch should generally look like when you are done. How to wire a light switch learning how to wire a light switch is one of the basic skills that every homeowner should do. Bit concerned about the colouring though. Twist like wires together if there are any. Yellow grey all of these switch wires are live so red sleeving is used on the black blue and yellow wires. Connect the wires from the light fixture to the wires from the house.
As a homeowner you will likely need to replace a light switch many times and paying an electrician is not optimal when you can do it in just a few minutes. In order for the light to be controlled by its own switch the wiring between the switch and the fan unit needs a fourth wire a red wire to carry power to the light kit. Follow standard color codes that identify each wires function in a circuit. Our instructions on how to wire a light switch for a standard light switch a three way light switch and a four way. For example you might see yellow wires as switch legs to ceiling fans structural lights and outlets paired with light switches. Blue and yellow electrical wires while wires in these colors carry power they are not used in typical outlet wiring.
All home electrical wires made in the us. Instead blue and yellow wires are used as the live wires pulled through a conduit. Knowing which wire does what and goes where is imperative not only in the correct configuration of an electrical system but also for your familys safety. In other words blue yellow violet and brown wires come into play when you have multiple wall switch locationstwo in a 3 way switch or three in a 4 way switchthat control the same set of. Look up in the wire housing on the ceiling or the wall and pull the wires out. Yes there will be some slight differences on weather or not to pigtail a short wire that leads from the switch to the yellow caps the load andor line but your ground and neutral should always be pigtailed.
A double check would be to remove the switch that controls the light and see if its yellow in there. Not sure ive seen redblue cable outside of control cables. It is not the plates that have yellowed it is the actual flat onoff switch.