This page last changed on Nov 23, 2015 by ilmaros.

Hello please help wanted

Ive made ​​a sensor to read out the status of the dimmer Domoticz and it works:
HTTP attributes
URL: http://192.168.178.210:8085/json.htm?type=devices&rid=163
HTTP Method: GET
Content-Type: –
Workload: –
XPath Expression: –
Regular Expression: –
Polling Interval: 1s
JSONPath Expression: $result(0).Level

Oke this works now de slider to set a domoticz dimmer:

HTTP attributes
URL: http://192.168.178.210:8085/json.htm?type=command&param=switchlight&idx=163&switchcmd=Set%20Level&level=
HTTP Method:
GET
Content-Type:
Workload: :$param (with {})
XPath Expression: :--
Regular Expression: :--
Polling Interval: :--
JSONPath Expression: :--

This wont work, is there somebody who can explain this problem?

Greetings Ronald

This is the JSON response
{
ActTime: 1448290063,
ServerTime: "2015-11-23 15:47:43",
Sunrise: "08:13",
Sunset: "16:41",
result: [

Unknown macro: { AddjMulti}

],
status: "OK",
title: "Devices"
}

Posted by ilmaros at Nov 23, 2015 15:01

Hi

I must confess that I've only played with HTML commands as a way to test Velbus interactions.

However, I can tell you that I've successfully used this HTTP Get command to change the volume of VLC from a slider in OpenRemote.

http://127.0.0.1:8080/requests/status.xml?command=volume&val=${param}

Everything else in the command builder was empty, except choosing GET as the method.

I would suggest that you have the

${param}
in the wrong place?

I hope that helps.

Posted by mdar at Nov 23, 2015 15:52

Hey thanks Stuart, i'm gonna trie this tomorow and let you know.

Thankzzz

Posted by ilmaros at Nov 24, 2015 22:13
Document generated by Confluence on Jun 05, 2016 09:33