Sending Z-Wave device commands using the Maker API?

I’m trying to use the Maker API to send startLevelChange and stopLevelChange commands to a Z-Wave dimmer. I assume that startLevelChange/stopLevelChange is used in the [Command] portion of the query string. But I can't work out where the direction parameter should go or what it should consist of. I’ve tried the following values in the [Secondary value] portion of the query string without success:

up, down, bright, brighten dim, 1, 0, -1

I can get on and off commands to work so in know the device ID and access token are OK.

Here’s an example of a dim command I have tried:

http://192.168.1.128/apps/api/198/devices/35/startLevelChange/dim?access_token=(removed)

I’m sure I’m overlooking something obvious—any clues?

These commands are not in the whitelist. Will look into adding them down the road.

Also, its probably a good idea not to post your access token.

Thanks. Didn't realize posting the access token was a security risk given that the router isn't accessable outside my private subnet. Besides, if someone hacks into my wifi network they can easily access the Hubitat hub and the token is visible in the Maker API command example. Maybe they shouldn't be?

Anyway, I look forward to these commands becoming available. I've sold off all of my Insteon gear including a PLM that I was using with Girder running on my HTPC to translate IR commands sent from my Pronto TSU-7000 touch screen remote to Insteon lighting commands.

@patrick: Great to see that the startLevelChange and stopLevelChange commands were whitelisted in the 1.1.6 release! I had a look at the Maker API Wiki and couldn't find any info on level change direction. Calling

http://192.168.1.128/apps/api/198/devices/35/startLevelChange?access_token=[TOKEN]

without a [Secondary value] param causes to dimmer to go from current level to 100% brightness. But I still can't work out how to call startLevelChange to dim from the current brightness until a stopLevelChange is sent.

Any thoughts?

startLevelChange(direction) where direction is "up" or "down"

I tried that but nothing happens. Neither of these commands does anything or returns any results:

http://192.168.1.128/apps/api/198/devices/35/startLevelChange/down?access_token=[TOKEN]
http://192.168.1.128/apps/api/198/devices/35/startLevelChange/up?access_token=[TOKEN]

Am I missing something?

Do these commands work correctly from the driver details of the target device?

Yes. startLevelChange with enum values of up and down both work as expected.

Anything in live logs?

And what driver?

Just tested with a Lutron dimmer. Get

java.lang.NullPointerException: null (sendDeviceCommandSecondary

Edit: same with a GE zwave plus dimmer

GE Z-Wave Plus in-wall paddle dimmer

Here's the log output for for down and up commands respectively:

Yeah. Seeing the same thing. Submitting a bug and we will see what's going on. Setlevel with a parameter works. So something is a miss.