There is a virtual weather tile you can add through the ide that does lux things. I don’t know how accurate it is, but that would be a good starting point.
From there, you would likely need to create an app that watches that lux value and changes the mode accordingly.
@differentcomputers - Install a On/Off Button tile (it’s like a virtual switch), then have IFTTT toggle that on or off based on the weather, then use a simple app to switch the mode based on whether that switch is on or off.
Install On/Off button tile: From IDE, go to My Devices, then click New Device, Enter a name and make up a network ID (use 1000 or something to make sure it’s unique), select “On/Off Button Tile” for Device Type… that’s it.
Then make a smart app something like this (I didn’t test this):
First off, this Virtual Switch trick with IFTTT to set modes should be broadly publicized. Because it’s a HUGE lever for doing all sorts of things! Many thanks to @Steve28!!
But here’s my problem now: The Sunrise/Sunset App currently sets my daytime mode to Dark Weather, my default daytime mode. IFTTT seems to only send commands when the weather changes, it doesn’t constantly barrage with statuses. So in the morning, Dark Weather kicks off. And unless or until the weather changes and IFTTT tells ST about it, it will stay Dark Weather until Night.
Which is fine, you know, if it’s actually overcast or raining. But mostly, it’s sunny. Now, I could point the morning mode change to It’s a Lovely Day mode instead of Dark Weather mode, but that doesn’t get rid of the problem.
Any ideas? I feel like I’m always one more “IF x” away from solving my problem. If IFTTT allowed nested ifs, I could make it go “If time = NN:NN AND Weather = Clear, then…” but no.
I’m also playing with the Weather Tile, but it doesn’t have any outputs for some reason, and I can’t use it as a sensor.
I think if you stop changing the modes in your sunrise/sunset app and modify the dark weather app to specifically set only to the two modes you want, you’ll get exactly what you want. Dark weather checks the weather every minute between sunrise and sunset.
I’ve made some progress with using the Weather Tile as a sensor. However, it seems like the Weather tile only updates manually, or maybe twice a day? Randomly? I can’t tell.
Is there any way to set the Weather tile to update more often? At the very least, I need it to be able to tell ST that it has gotten dark out at sunset! (I know there’s a sunset app, but I’m trying to sense dark weather AND sunset/sunrise, just like a Lux sensor would.)
I just chatted online with Tyler, who spoke with a dev, and they confirm there’s a bug in the Smartstation Weather Tile code that prevents it from updating regularly. It’s supposed to update every 5 minutes, but mine is doing it at most 2x per day.
I also suggested changing the tile’s logging to only log changes to the weather, rather than logging everything, since that will quickly fill the activity feed in the iOS app otherwise.
If you’re trying to do anything with your setup that involves weather, this tile is really powerful, or at least it will be once it’s fixed! So check it out in the IDE.