WTH - Make Scenes Stateful

Please search before posting a new WTH. Closing as a duplicate. You can vote and comment here: WTH is it hard to detect if a scene is active, or group multiple scenes as variations