Smarwi windows opener and its control via HTTP reqeuests

If you mean Params screen:

Params (those are attributes, anyway) are OK. Are you able to get some logs?
Easiest way is to use the HTTP endpoint, if you’re not comfortable with Linux, ssh and company.

http://wiki.micasaverde.com/index.php/Logs

http://vera_ip/cgi-bin/cmh/log.sh?Device=LuaUPnP

I just need to get the startup part. Look for VirtualBinaryLight starting… in the logs and report the next 10-15 lines, until you found something related to an error. Thanks.

So I have checked the logs after Reload Engine and found only this regarding the VirtualBinaryLight (device ID198 is my virtual device for Windows opener):

|02|03/09/20 11:42:43.555|Device_Basic::m_eConfigured_set device 198 was 0 now 0 startup <0x779b0000>|
|---|---|---|
|01|03/09/20 11:42:43.596|LuImplementation::Parse can't parse xml /etc/cmh-ludl//I_VirtualBinaryLight1.xml <0x779b0000>|
|01|03/09/20 11:42:43.597|JobHandler_LuaUPnP::ParseAllImplementations failed to parse I_VirtualBinaryLight1.xml <0x779b0000>|
|02|03/09/20 11:42:43.604|GetSunriseSunset error#1 sunrise: 1583645213/2020-03-08 06:26:53 sunset: 1583686611/2020-03-08 17:56:51 midnight: 1583708400/16578132 <0x779b0000>|
|02|03/09/20 11:42:43.613|GetSunriseSunset error#1 sunrise: 1583645213/2020-03-08 06:26:53 sunset: 1583686611/2020-03-08 17:56:51 midnight: 1583708400/16598652 <0x779b0000>|
|02|03/09/20 11:42:43.626|GetSunriseSunset error#1 sunrise: 1583645213/2020-03-08 06:26:53 sunset: 1583686611/2020-03-08 17:56:51 midnight: 1583708400/16638836 <0x779b0000>|
|02|03/09/20 11:42:43.639|GetSunriseSunset error#1 sunrise: 1583645213/2020-03-08 06:26:53 sunset: 1583686611/2020-03-08 17:56:51 midnight: 1583708400/16663500 <0x779b0000>|
|02|03/09/20 11:42:43.644|GetSunriseSunset error#1 sunrise: 1583731485/2020-03-09 06:24:45 sunset: 1583773108/2020-03-09 17:58:28 midnight: 1583794800/16663500 <0x779b0000>|
|02|03/09/20 11:42:43.660|GetSunriseSunset error#1 sunrise: 1583645213/2020-03-08 06:26:53 sunset: 1583686611/2020-03-08 17:56:51 midnight: 1583708400/16694764 <0x779b0000>|
|02|03/09/20 11:42:43.665|GetSunriseSunset error#1 sunrise: 1583731485/2020-03-09 06:24:45 sunset: 1583773108/2020-03-09 17:58:28 midnight: 1583794800/16694764 <0x779b0000>|
|02|03/09/20 11:42:43.673|GetSunriseSunset error#1 sunrise: 1583645213/2020-03-08 06:26:53 sunset: 1583686611/2020-03-08 17:56:51 midnight: 1583708400/16701524 <0x779b0000>|
|02|03/09/20 11:42:43.680|GetSunriseSunset error#1 sunrise: 1583645213/2020-03-08 06:26:53 sunset: 1583686611/2020-03-08 17:56:51 midnight: 1583708400/16702300 <0x779b0000>|
|02|03/09/20 11:42:43.685|GetSunriseSunset error#1 sunrise: 1583731485/2020-03-09 06:24:45 sunset: 1583773108/2020-03-09 17:58:28 midnight: 1583794800/16702300 <0x779b0000>|
|01|03/09/20 11:42:43.711|UserData::BuildShortData bad category 666 <0x779b0000>|
|01|03/09/20 11:42:43.711|UserData::BuildShortData bad category 666 <0x779b0000>|
|01|03/09/20 11:42:43.712|UserData::BuildShortData bad category 666 <0x779b0000>|
|01|03/09/20 11:42:43.712|UserData::BuildShortData bad category 666 <0x779b0000>|
|01|03/09/20 11:42:43.713|UserData::BuildShortData bad category 666 <0x779b0000>|
|01|03/09/20 11:42:43.713|UserData::BuildShortData bad category 666 <0x779b0000>|
|01|03/09/20 11:42:43.713|UserData::BuildShortData bad category 666 <0x779b0000>|
|01|03/09/20 11:42:43.714|UserData::BuildShortData bad category 666 <0x779b0000>|

According to this error, the file seems to be corrupted.
You have to upload it again.

I have uploaded all the files again, deleted the device, created the new one, reloaded the engine and it behaves the same - still only ModeSetting under variables…

Only one thing what I want to mention if that cant cause this issue is when I uploaded the files for the first time they hady .html at the end (Finder renamed it) before I found out, they were already uploaded. So now I have both .xml and xml.html versions on Vera, but I think it should not cause the problems?

If you are able to access via SSH, it will be better to delete all the files and start again. I suggest to download all the files starting from GitHub - dbochicchio/vera: LUA Scripts for the eZlo Vera Platform (UI7). via the “Clone or download” button, then just uploading the raw files.

Thanks, I have deleted all the files using WinSCP, uploaded again and now its OK :slight_smile:

Just one question, the window opener uses this http req. for percentage open https://1.2.3.4(Smarwi local IP)/cmd/open/(% of open as integer) how can I tell the plugin that the slider on device will change the % of open in url of request? I suppose that for this percentage of open I will use the var SetBrightnessURL, but don’t know how I enter in URL the variable of slider (percentage of open).

great!

Just use a %s placeholder when you want to send the value:

https://1.2.3.4/cmd/open/%s

PowerOnUrl should be set to 100, PowerOffUrl to 0, just to support On/Off as well.

1 Like

Thanks, I have connected Smarwi, configured all the URLs and everything works - Open/Close/Stop/Percentage in connection with this Window opener. Thanks for your support!

1 Like

My pleasure. That’s why I support these plug-ins, after all :slight_smile: