Influence of the Mixed-Valences State on the Magnetic Excitation Spectrum of SmB6-Based Compounds