Ideas for controlling blinds based on weather?

strange… seems to be working now. thanks for all of your help. ill give it a shot and give you some feedback. super excited to give this a try.

spoke too soon…
java.lang.NullPointerException: Cannot invoke method toInteger() on null object @line 547 (doCall)

Might be that checking for sun was earlier then windchecking, could you paste application state? go to my locations, smartapp, click smart screens and locate state.


some additional info: i seem to only be getting the null when i configure a shade orientation as SE or E facing (12:00 pm local time). hope this helps.

which weather provider are you using?
could you also paste the settings?

did you provide the maximum windspeed that is allowed for your shade, below this speed the commands will be executed, when above action is take to protect your shade against windforce…

it is below Sun Protection Only Below Windforce…

that did the trick. i overlooked this since the screens i am commanding are interior and it wasn’t called out as a required field. many thanks for all of your help and working through this for me! ill reach back out to you in a few days when I’ve had some time to play :grinning: thanks again!

Good feedback, I will add an interiour/exteriour selector. that will exclude the shade from windprocessing

hello,
I would like to use your smartapp but immpossible to use
I copy/past your code in a new smartapp, creat, save and publish for me … at this point all is good
I try with simulator and i obtain “physicalgraph.exception.NotFoundException: Page Not Found”

moreover, I think that it would be nice if you created your own post to have the installation tutorial, the changelog, possibly, the requests of debug or evolution and to be able to find more easily your smartapp

thank you in advance

Will create a wiki for this, was originally intended for my own use as an add-on to my domoticz smartthings bridge, but now in progress to have it ready for more general use. Need to change one more thing for that. Never have used it in the simulator. If you can post the error it gives in the live logging it might help me detect what goes wrong, You need to have the dth domoticzOnOff as well. The shades need to have the windowshade capability to be able to select.

Big thanks for your reply,
All is good with the DHT :grinning:
I have configured all the parameter but i have a doubt with this parameter (Protect until what cloudcover%)
I have put 10% all over but it is a very random parameter, indeed, it can make a super clear time but not very hot (especially in France).
I thought there was also a comparison between indoor and outdoor temperatures.
So, if the indoor temperature rises above 23 ° (for example) and the outside temperature is above 28 ° (for example) then I close the shutters that face the sun … or something like that

In any case, I thank you in advance for your work and I will test to see how it reacts

Will check on the temp possibility, not that difficult to create (i hope), nice enhancement…

wiki : Smart Screens

Version 4.01 is on git which has temperature operations for outside/inside and aircocool mode. Have a test!

Martin, this looks amazing, even has its’ own wiki :slight_smile:

However, can you please clarify precisely what is needed for it to work? Specifically which .groovy files (there are so many in your repo), and also if it requires special hardware (e.g. a Domoticz server?).

My blinds simply appear as z-wave dimmers, and are controlled by setting the dimmer level. I.e. 0% == down, 100% == up, 90% == almost all way up. This makes the integration extremely simple but I wonder if that works with your awesome SmartApp. Please let me (and I think many others) know if that’s supported!

MANY thanks for all your hard work!!

I will update the wiki what it needs. It used to be a companion app for domoticz server app. Not any more. It should be autonomous now.

image
from repo Domoticz-Server you need device handler domoticzOnOff ( it creates the overall pause switch)
from SmartThingsPublic the app Smart Screens.

It will select available shades based on windowShade capability, so if they are just dimmers, I do not think they will be selectable. Are you using a custom or standard DTH? What is the manufacturer/model of the blind (if not being seen as windowshade, maybe i have an alternative for you)

Do you have github integration in the ide?

Verzonden vanaf Samsung-tablet.

-------- Oorspronkelijk bericht --------

Actually, I noticed there is actually a dependency in the source code. I was able to get it working after (updating and) publishing that dependency: domoticzOnOff. Maybe it’s possible to replace that with some off the shelf alternative?

The other thing I had to do was to change the device handler from ‘dimmer switch’ to ‘Springs Window Fashions Shade’. That’s unfortunate because google home isn’t able to control such devices (so now I can’t impress visitors by voice controlling my shades, lol).

Maybe it’s worth mentioning if others are in a similar situation that my blinds are Graber Virtual Cord, or something like that…

Thanks again for your excellent and hard work!

I’ve got new error :slight_smile:

grails.validation.ValidationException: Validation Error(s) occurred during save():

  • Field error in object ‘physicalgraph.device.Device’ on field ‘deviceNetworkId’: rejected value [SmartScreens Pause Switch]; codes [physicalgraph.device.Device.deviceNetworkId.unique.error.physicalgraph.device.Device.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.error.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.error.java.lang.String,physicalgraph.device.Device.deviceNetworkId.unique.error,device.deviceNetworkId.unique.error.physicalgraph.device.Device.deviceNetworkId,device.deviceNetworkId.unique.error.deviceNetworkId,device.deviceNetworkId.unique.error.java.lang.String,device.deviceNetworkId.unique.error,physicalgraph.device.Device.deviceNetworkId.unique.physicalgraph.device.Device.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.java.lang.String,physicalgraph.device.Device.deviceNetworkId.unique,device.deviceNetworkId.unique.physicalgraph.device.Device.deviceNetworkId,device.deviceNetworkId.unique.deviceNetworkId,device.deviceNetworkId.unique.java.lang.String,device.deviceNetworkId.unique,unique.physicalgraph.device.Device.deviceNetworkId,unique.deviceNetworkId,unique.java.lang.String,unique]; arguments [deviceNetworkId,class physicalgraph.device.Device,SmartScreens Pause Switch]; default message [{0} must be unique]

Please advice

when is this happening?

I tried to configure Smart Screens to use Open Weather, saved the parameters. Then , each time I ran Smart Screens I’m getting this error. What is wrong ? I did not configure any pause switch based on domoticz server…