SmartThings Community

Ideas for controlling blinds based on weather?

weather
shades
motorizedblinds
motorizedshades
project_shades

(Martin Verbeek) #21

yes, i have build it upon devices created by another app that was bridging Domoticz to SmartThings, sorry for that!


(Nassere Besseghir) #22

No problem.
I will have a look at your repo. Maybe I can fork it and make some modifications. Would that be an issue?


(Martin Verbeek) #23

Let me check If can easily make the app more generic. Will be back. Could you PM me done detail from the ide of your Somfy device? And what dth it is using.

met vriendelijke groeten,

Martin


#24

Hi Martin - I was following this thread with the hopes of a resolution to having your app more generic. I am looking for something that does exactly this (control based on sun position and shade orientation) except the shades are zwave and controlled directly through ST. Would have PM’d you but too new to ST and the the forum. Would love to know if you had an update. Thanks!


(James) #25

Look into webCoRE. I have all season routines (Pistons) setup to close and open the z wave shades accordingly.

You can even go in as far as if the AC is on close shades, etc etc

Sun Calc helps with the approximate position of the sun throughout the day.


(Martin Verbeek) #26

The app has been updated to control all that have Windowshade capability, suncalc is part of the app :wink: have converted it into groovy. Looking for feedback on it.

Install Smart Screens app in the IDE and devicetype handler domoticzOnOff as a needed one.

Any issues, let me know.


#27

Thanks Martin - I’ve installed smart shades and published, the app appears in ST but cannot launch. I should clarify that my setup is basic at this point only have devices connected directly to ST including the shades. No pi or other device running domoticz since the shades are zwave and controlled directly with ST. Is configuration with my setup possible with the smart app or do I need to be controlling the shades with a controller running domoticz? Sorry… very new to ST :neutral_face:


(Martin Verbeek) #28

No should be able without domoticz. If you go to live logging in the IDE, and after that launch the app, are there any errors showing in the log under Smart Screens? I have recently made changes to also control shades that are not contolled by my own device type handler.
Could you also paste a screenshot of one of your devices from the IDE?


#29

Sorry for the delay. Yes, this is the error I see:
error: physicalgraph.app.exception.UnknownDeviceTypeException: Device type ‘domoticzOnOff’ in namespace ‘verbem’ not found. @line 65 (pageSetupForecastIO)

Can you send a link to the code for the DTH? Having trouble with that.


(Martin Verbeek) #30

#31

Many thanks Martin. Up and running. Happy to give you some feedback in a few days when I have some time to configure. Thanks again!


#32

Getting the error below when trying to save the configuration. Any thoughts?
groovy.lang.MissingMethodException: No signature of method: script_dth_7b918435dfeeebcfd377c25647cd7b7380d1a7864c360330a9ddf68024d08b06.parse() is applicable for argument types: (java.util.LinkedHashMap) values: [[name:windBearing, value:SE, isStateChange:true, …]]
Possible solutions: parse(java.lang.String), pages(), page(), pages(groovy.lang.Closure), page(java.util.Map), close() @line 652 (doCall)


(Martin Verbeek) #33

Checking…


(Martin Verbeek) #34

was sending an event to your dth which was not supported, added some checks to prevent. 3.11 is on github. We might run into a couple of these cases, thanks for helping out. Please leave live logging running fo a while to catch the errors…


#35

Thanks Martin, New error when saving configuration:

java.lang.NullPointerException: Cannot get property ‘typeName’ on null object @line 653 (doCall)


(Martin Verbeek) #36

missed your message, stupid, forgot to replace an object reference, tested it, no more null…v3.12 on git


#37

no worries, not seeing v3.12 on git though


(Martin Verbeek) #38

should be on now…


#39

one more below. sorry I cant catch these in one go.
java.lang.NullPointerException: Cannot invoke method toInteger() on null object @line 680 (doCall)


(Martin Verbeek) #40

No problem, strange that I did not get it.

met vriendelijke groeten,

Martin