So, are you state that with a sole temperature as a parameter fit to the LSTM you are predicting the electricity consumption in the best way?
You can pass other categorical variables to an LSTM using vectors of values [temperature, day_of_month, etc...], but it may lead to a worse performance because of the factor that the model becomes too complex to fit the amount of available data. Which is not the case when you use only one parameter
Do I understood your demand?