Connection to Domoticz defined devices like Blinds and On/Off switches

will check, but there should be no need. But when i wrote it no UK hub yet…will let you know.

i see what you mean, this is not impacting execution. But i will make it generic. Will turn this into the url you need to plu into Domotics Custom URL action.

This is now implemented as a generic call to getServerUrl(). The custom action for domoticz is now save into state.urlCustomActionHttp , you can now copy/paste this into your domoticz straight from this. Go to IDE list smartapps, domoticz server and you will find this state var.

Update from Repo to get last code, start Domoticz Server Smartapp and hit DONE to get it.

Thanks mate! Will look at it tonight!

I did some maintenance to the smartapp and to the related devices a while ago. If you had the domoticzOnOff and docmiticzBlinds devices in use, please update them with fresh copy from github.

should I use domoticz-server.src or smart-screens.src?

Domitcz-server. Smart-Screens is something i made to automate screen and shutters to close when sunny or close when lots of wind under certain circimstances.

1 Like

Yay! All working, at least software wise… I am not physically at home so can’t say 100% that the shades work, but I’ll assume they do!

Just one thing… I’m testing to raise lower one shade and it stays as “opening” or “closing”… it doesn’t seem to update when it finishes… or could or be because I’m stopping it before it finishes the action?

How much wind is “lots of wind” considering my house is directed south? :yum:

:grin: that indeed depends on the robustness of the blinds…i have them closing when 50km or higher. But the sun shades are not allowed to close below 20.

The status is updated with the message that is sent from domoticz arrives in st. So the conclusion should be that the message is not sent from domoticz or arriving at st.

The setup in domoticz is a bit more work. They are under notificatios in the swithces tab. You must define a http on and off action for the blinds.

Do not forget to specify in domoticz the below in setup of domoticz

Local Networks (no username/password):
Networks:
127.0.0.;192.168.0.;10.0.0.*

(Separate by a semicolon, For Example: 127.0.0.;192.168.0.)

You should see messages like this in the log

2016-03-12 21:15:47.634 SmartThings Off for 30
2016-03-12 21:15:47.655 User: Admin initiated a switch command
2016-03-12 21:15:48.688 Notification sent (http) => Success

The first is the message from st to domoticz
The third is the message from domoticz to st

Hum, what http line should I add for the notifications? I’m still in the learning curve… :disappointed_relieved:

in Domoticz you click notifications here:

then you mark http for type Switch On and Switch Off

Now you will get status back from Domoticz to ST. But only if you have defined the correct URL/Action under Settings / Notifications in Domoticz.

you will find this URL in the IDE of ST under My Locations, List Smartapps, Domoticz Server,

do a copy paste into the above Domoticz filed. It contains the access token for the smartthings app.

1 Like

Sweet! Thanks!

Hum, two-part question here…

  1. About the notification, every how often does it update? I’m raising/lowering the shades and I see something flicker in the notification panel but then the “Opening” or “Closing” notification keeps showing up instead of “raised” or “lowered”…

I’m not home yet but i assume it’ll be working?

Oh and part 2 is about the icons… where do I change them? Lol!

I have a shade like this one:

Not that one, but that system… and I’d like to have that reflect in the app…

BTW: I just saw this:

java.lang.StringIndexOutOfBoundsException: String index out of range: 184 @ line 363

any clue when it happens? during which action or at what page in the setup or listing of devices?

cannot recreate the same.

maybe you can post some of the log for the app that includes the error.

you can change the icon in the device, press the settings icon in the top right and edit device, at that screen you can choose the standard icons from a category. I dont think you can put in a picture of your own.

If you want another icon in the app, you need to change the code a bit at the top. it has a line like iconX2Url, if you change it to what inserted you get a picture of the arteytoldos brand logo.:

iconX2Url: "http://www.arteytoldos.com.ar/gallery/05305e041e36f3fbf5fd19eea2a6bf68_300x350.jpg",
//iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
//iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png",

Hey Martin!

Thanks for the tips! I’ll take a look at them when I get home…

I now have another thought in mind! Lol!

Do you know of any smartapp that can check the local using the coordinates reported by the hub) forecast and lower/raise the shades or blinds accordingly?

Thanks!

That is the smartscreens app i have made. It will look at your lattitude longitude from the hub and will lower screens when sunny and your screen is in the direction if the sun…

What about when rain or wind threatens to come in? Will they go back up?