I am working on some logic that controls the light in my kitchen.
In that case I want to run a script that saves the state of the 4 lights in the kitchen in variables. Then a new script that reads the states stored in the variables and set the status accordingly.
Can this be done?
If someone can help me with this, it would be much appreciated
Script 1
Read state dimmer 1 and set variable A
Read state dimmer 2 and set variable B
Read state dimmer 3 and set variable C
Read state switch 1 and set variable D
Script 2
Set dimmer 1 from state in variable A
Set dimmer 2 from state in variable B
Set dimmer 3 from state in variable C
Set switch 1 from state in variable D