Jump to content
Gen2 Devices: FW Update Required / Gen2 Geräte: FW-Update erforderlich ×

API call to start/stop dimming?


Recommended Posts

I was inspired by this script emulate_multiple_dimmers.js to let button switches control the dimmers and got it working for turning on/off and setting brightness:

curl "http://x.x.x.x/light/0?turn=on&brightness=100"

However these dimming commands from the script have no effect (script is written for Shelly Dimmer 2, and the command is mentioned in that API)

curl "http://x.x.x.x/light/0?turn=on&dim=up&step=5"
curl "http://x.x.x.x/light/0?dim=stop"

I cannot find any similar API command for the Pro Dimmer, is there any similar way to do this? Its not documented here or here how to control dim up/down.

Link to comment
Share on other sites

  • 2 weeks later...
  • QA members
On 6/25/2024 at 8:17 PM, DHa said:
On 6/25/2024 at 8:17 PM, DHa said:

I was inspired by this script emulate_multiple_dimmers.js to let button switches control the dimmers and got it working for turning on/off and setting brightness:

curl "http://x.x.x.x/light/0?turn=on&brightness=100"

However these dimming commands from the script have no effect (script is written for Shelly Dimmer 2, and the command is mentioned in that API)

curl "http://x.x.x.x/light/0?turn=on&dim=up&step=5"
curl "http://x.x.x.x/light/0?dim=stop"

I cannot find any similar API command for the Pro Dimmer, is there any similar way to do this? Its not documented here or here how to control dim up/down.

 

It was added with the 1.4.0 beta firmware.

You just need to add rpc to the dim commands.

/rpc/Light.DimStop?id=0
/rpc/Light.DimDown?id=0&fade_rate=4
/rpc/Light.DimUp?id=0&fade_rate=4

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...