Restore_state for rfxtrx devices on restart

Could we get HA to restore the states of switches and lights on the rfxtrx platform?
Or even better a generic solution for all devices?

Every time HA gets a restart it’s unknown of the states in which the lights and switches were before,
and this is something which seems be a challenge for a lot of users looking at the history.

I can’t imagine it being very hard to create as a generic solution, but if that’s impossible, please add it to the rfxtrx component.

@Fonta, I’ve made a PR to add this #30309. It’s approved, so it will probably be added in the next release (0.104). Besides lights and switches, I also did this for covers.

@Ernst That’s awesome. Many thanks!!