Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dimming support via echo-ha-bridge and REST calls

Featured Replies

Posted

I'm running the newest version  of the ha-bridge package (0.4.0) to emulate the hue platform with my Echo Dot 2. Basic on/off features seem to work fine, but I'm unable to do dimming. Per the bridge's github repo:

Dimming is also supported by using the expression ${intensity.percent} with a value of 0-100 or ${intensity.byte} with a value 0-255, respectively.

 

So, I'm putting the following in (which works):

{
  "name":"Kitchen Table Light",
  "deviceType":"switch",
  "offUrl":"http://admin:*****@192.168.1.7:80/rest/nodes/7959/cmd/DOF",
  "onUrl":"http://admin:*****@192.168.1.7:80/rest/nodes/7959/cmd/DON"
}. 

Per the ISY REST guide:

  • Insteon - /rest/nodes/<node-id>/cmd/DON/128 - turn on a scene to 50% (valid parameters = 0 - 255)

 

If I update the onUrl to: 

"http://admin:*****@192.168.1.7:80/rest/nodes/7959/cmd/DON/${intensity.byte}"

The update is accepted, but Alexa complains that the device is not reachable.

 

Anyone know what I'm doing wrong?

 

Dan

Edited by dgeist

Try the parameter outside the double quotation delimiters.

 

 

ohhhhh. you can't set a scene to a dim level...just on or off.

Edited by larryllix

  • Author

The parameter thing is a good idea, but the configurator is generating that part, not me (I tried POSTin the HTTP without it and it wouldn't parse correctly.

 

I thought of the scene thing, and tried calling one of the dimmers the same way, but with the hardware ID instead of the scene number, but still no-go:

http://admin:*****@192.168.1.7:80/rest/nodes/29 D3 86 1/DON/${intensity.byte}

Anything wrong with the syntax of that one?

 

<edit> the "POST" above refers to populating the ha-bridge hue-emulator application, not the call to the ISY </edit> 

Edited by dgeist

I am not familiar with this technique you are using.

 

All Rest commands are GET.

 

Try a hard coded number first to get it going, then the variable later.

Edited by larryllix

I'm running the newest version  of the ha-bridge package (0.4.0) to emulate the hue platform with my Echo Dot 2. 

 

 

As an aside, assuming you're talking about the BWS Systems version of ha-bridge, the Latest version is 3.2.0.

 

https://github.com/bwssytems/ha-bridge/releases/

  • Author

Negative. This is the version at https://github.com/armzilla/amazon-echo-ha-bridge

 

As an aside, I was able to manually get the REST commands to DIM to a specific percentage based on the switch hardware address and utilizing %20 in the expressions instead of spaces (not too surprising, there). I'll validate if "Alexa" will properly trigger the numeric value through the bridge once I get home.

 

 

 

<edit> Sure enough, I'm able to get simple dimming now with a REST call configured in the bridge like this:

http://admin:****@192.168.1.7:80/rest/nodes/29%20E0%2084%201/cmd/DON/${intensity.byte}

It supports numeric percentages as well as keywords like "half" and "three quarters" but not yet "dim" or "brighten" but that's an Echo thing.

</edit>

 

Dan

Edited by dgeist

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.