Local API .../device/dim error

Moderator: Telldus

Local API .../device/dim error

Postby kamsvag » Wed Mar 08, 2017 10:52 am

Ok, so I'm having troubles with the 'device/dim' command.

This is my URL;
Code: Select all
http://10.0.100.6/api/device/dim?id=28?statevalue=192


The response I get is;
Code: Select all
{
  "error": "deviceDim() takes exactly 3 arguments (2 given)"
}


What am I missing?
kamsvag
 
Posts: 58
Joined: Thu Mar 12, 2015 1:46 pm

Re: Local API .../device/dim error

Postby micke.prag » Wed Mar 08, 2017 12:20 pm

Separate the parameters with &, not ?
Micke Prag
Software
Telldus Technologies
micke.prag
Site Admin
 
Posts: 2208
Joined: Thu Jul 27, 2006 8:25 pm
Location: Lund

Re: Local API .../device/dim error

Postby kamsvag » Thu Mar 09, 2017 10:08 am

Excellent. Thanks.
kamsvag
 
Posts: 58
Joined: Thu Mar 12, 2015 1:46 pm

Re: Local API .../device/dim error

Postby kamsvag » Wed Apr 05, 2017 5:52 pm

What parameters are available to '.../device/up?id=59&' & '.../device/down?id=59&' ??? I've tried 'level', 'value', 'state' & 'statevalue'.
The parameter 'level' seem to work with '.../device/dim?id=59&'. Are there any document that lists all available commands and their parameters?

Also a side note, is there any way to list the mesh network of the zWave protocol on the Tellstick???

Cheers!
kamsvag
 
Posts: 58
Joined: Thu Mar 12, 2015 1:46 pm

Re: Local API .../device/dim error

Postby micke.prag » Thu Apr 06, 2017 5:13 am

kamsvag wrote:What parameters are available to '.../device/up?id=59&'

http://api.telldus.com/explore/device/up
Micke Prag
Software
Telldus Technologies
micke.prag
Site Admin
 
Posts: 2208
Joined: Thu Jul 27, 2006 8:25 pm
Location: Lund

Re: Local API .../device/dim error

Postby kamsvag » Thu Apr 06, 2017 6:55 am

Excellent, thanks for quick response.

So if I get this right, dim can be set to 'level' while 'up' and 'down' has no parameters?
kamsvag
 
Posts: 58
Joined: Thu Mar 12, 2015 1:46 pm

Re: Local API .../device/dim error

Postby micke.prag » Thu Apr 06, 2017 10:56 am

Correct
Micke Prag
Software
Telldus Technologies
micke.prag
Site Admin
 
Posts: 2208
Joined: Thu Jul 27, 2006 8:25 pm
Location: Lund


Return to Beta testing

Who is online

Users browsing this forum: No registered users and 1 guest