Help with scene based on weather


I have a scene at my front door where a motion detector (hsm100) turns on the light i it detects motion i set up a virtual switch that prevents the light from turning on between sunrise + 2h and sunset - 2h it works fine.

What i want to do is to do, is to have the lights turning on if motion, based on google weather if its “rain” or “mostly cloudy” and all other conditions turn off. its probably easy to add some luup code to the sunrise/sunset schedule, but what should it look like?


This can be done with the Combination Switch plugin without Luup. Or with Luup, but try the Combination Switch first.