Local API .../device/dim error

Moderator: Telldus

Post Reply
kamsvag
Posts: 67
Joined: Fri Mar 17, 2023 9:45 am

Local API .../device/dim error

Post by kamsvag »

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: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

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

Post by micke.prag »

Separate the parameters with &, not ?
Micke Prag
Software
Telldus Technologies
kamsvag
Posts: 67
Joined: Fri Mar 17, 2023 9:45 am

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

Post by kamsvag »

Excellent. Thanks.
kamsvag
Posts: 67
Joined: Fri Mar 17, 2023 9:45 am

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

Post by kamsvag »

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: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

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

Post by micke.prag »

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: 67
Joined: Fri Mar 17, 2023 9:45 am

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

Post by kamsvag »

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: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

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

Post by micke.prag »

Correct
Micke Prag
Software
Telldus Technologies
Post Reply