Read and Restore state of lamps?

Is there any good way of reading the state from all hue lights and later in another automation restore it?

You could try out my python_script:

1 Like