[SOLVED] How can i control the gpios of a raspberry pi through google assistant

Google Assistant does not understand “Outlet2” or “Light2” Types. My guess would be

Switch fan "enchufe 2" <poweroutlet_us> { gpio="pin:17 activelow:yes initialValue:low" ga="Outlet" } (gBedroom) 
Switch night_light "Enchufe 1" <poweroutlet_us> { gpio="pin:27 activelow:yes initialValue:high"  ga="Outlet" } (gBedroom) 
Switch exhaust "Luz 1" { gpio="pin:23 activelow:yes initialValue:high" ga="Light" } (gBedroom) 
Switch light "Luz 2" { gpio="pin:5 activelow:yes initialValue:low" ga="Light" } (gBedroom)

Using code fences here shows us exactly how your configuration is spaced. The type of quotes look wrong too, but that may have been just the forum messing things up.

How to use code fences - Tutorials & Examples - openHAB Community