Local API .../device/dim error

Moderator: Telldus

Post Reply
kamsvag
Posts: 61
Joined: Thu Jan 18, 2018 11:08 am

Local API .../device/dim error

Post by kamsvag » Thu Jan 18, 2018 11:08 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?

micke.prag
Site Admin
Posts: 2216
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

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

Post by micke.prag » Thu Jan 18, 2018 11:08 am

Separate the parameters with &, not ?
Micke Prag
Software
Telldus Technologies

kamsvag
Posts: 61
Joined: Thu Jan 18, 2018 11:08 am

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

Post by kamsvag » Thu Jan 18, 2018 11:08 am

Excellent. Thanks.

kamsvag
Posts: 61
Joined: Thu Jan 18, 2018 11:08 am

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

Post by kamsvag » Thu Jan 18, 2018 11:08 am

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!

micke.prag
Site Admin
Posts: 2216
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

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

Post by micke.prag » Thu Jan 18, 2018 11:08 am

kamsvag wrote:What parameters are available to '.../device/up?id=59&'
http://api.telldus.com/explore/device/up
Micke Prag
Software
Telldus Technologies

kamsvag
Posts: 61
Joined: Thu Jan 18, 2018 11:08 am

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

Post by kamsvag » Thu Jan 18, 2018 11:08 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?

micke.prag
Site Admin
Posts: 2216
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

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

Post by micke.prag » Thu Jan 18, 2018 11:08 am

Correct
Micke Prag
Software
Telldus Technologies

Post Reply