I would like to create a on off for a bulb based on my TV being off and no motion detected for a set time.
i have a fibaro motion sensor and a ST power adaptor , the TV when on always used for than 5watts. I also have a Goodnight mode which i would then set to ignore is that’s the current state