New Scene Controller Plugin

This is an updated release of my new GenGeneric Scene Controller Plugin 2.02, which replaces my older scene controllers for the Evolve LCD1, Nexia One-Touch and Cooper RFWC5. The new plugin also has extensive support for the HomeSeer line of wall switches, dimmers and fan speed controllers.

In particular, the new plugin enhances support for the following Z-Wave devices.

  • Evolve LCD1 5 button controller with back-lit LCD panel
  • Cooper RFWC5 5 button controller with 5 LEDs
  • Nexia One-Touch 5 button controller with back-lit LCD panel
  • HomeSeer HS-WS100+ switch with one white LED
  • HomeSeer HS-WS200+ switch with one RGB LED
  • HomeSeer HS-WD100+ dimmer with seven white LEDs
  • HomeSeer HS-WD200+ dimmer with seven RGB LEDs
  • HomeSeer HS-FC200+ fan speed controller with four RGB LEDs

To install the new plugin first download the GenGenSceneController_2.xx.zip from the link below and expand the archive. (GenGenSceneController_2.xxd.zip is an unminified, debugging version which generates better logs in case there is a problem.)

From the Vera Web UI select Apps -> Develop Apps -> Create Device and fill out the form as follows:
Description: GenGen Scene Controller
Upnp Device Filename: D_GenGenSceneControllerInstaller.xml
Upnp Implementation Filename: I_GenGenSceneControllerInstaller.xml
Leave other fields blank and click “Create device”
Now go to Apps->Develop Apps->Luup files. Make sure that “Restart Luup after upload” is checked and then click the Upload button. Select all of the files in the archive folder which you expanded previously and click “Open.”
Vera may reload twice and installation is complete. A new Uninstaller device should appear which will remove all of the files in this plugin automatically.

The HomeSeer devices have two device tiles. The Switch/Dimmer device tiles work just like they did before as standard switches, dimmers, and fan speed controllers. However, an additional device icon is created for each device which supports the scene controller functions.

The HS-WD200+ dimmer has the most features of all of the HomeSeer devices (Other devices have a subset of the features described below.) It supports 1, 2, 3, 4, or 5 tap short or long press events on either the top or the bottom button. A 3-tap long press is actually tap-tap-hold.

The 7 RGB LEDs have four modes: Local level, other device level, all LEDs, or individual Status.

The Local level mode simply shows the current level of the dimmer. This is the only mode supported by the 100+ devices.

The other device level mode shows the level of other device(s) associated with the button and number of taps. For example it is possible to control the local load with a single tap or hold, and the level of another dimmer with a double tap or hold. The LEDs for the other dimmer can be a different color indicating that its for the other device, and then revert back to the local level display after a timeout.

The All LED display sets all LEDs to a single color: either solid or flashing, and gives control over the flash rate. For example, you can set up a scene which is triggered by some emergency condition such as an alarm going off, which causes all LEDs to flash red.

Finally, you can set each LED individually depending on the status of associated devices. For example you can control several remote switches with different number of taps on the top or bottom buttons. Each LED can show the status of a different switch.

If a controlled device is changed elsewhere, this is automatically reflected in the LED status in Local, Other Device or Individual modes as long as Vera is aware of the change. More than one device can be associated with a given event.

Tap events can have 2 - 9 states which can be rotated forward with the top button and optionally backward with the bottom button. For example, by using 4-states, you can tap to rotate a dimmer between 0%, 33%, 66% and 100%.

In addition to tap and hold events, there are up to 8 individual actions labeled A through H. These are 8 buttons visible in the top level device tile. These are designed to be controlled by Vera scenes triggered by timer or other events. You can control various LED modes from Vera scenes in this way.

All of this can be controlled from the “Configure” tab in the device control panel. Use the +Event or +Action buttons to add events or actions as needed. In general, modifying a setting for the top button automatically causes the opposite effect to be set for the bottom button. If you want to change the bottom button’s behavior independently, set up the top button first.

The Night Light mode controls whether or not at least one LED should be lit when a device is turned off. It also reverses the sense of the LEDs in individual status mode.

Support for the Evolve LCD1, Cooper RFWC5 and Nexia One Touch have generally been improved and many bugs have been fixed. Vera engine crashes and the dreaded “Failed to get lock” crashes have largely been eliminated.

Please try out this plugin and send me feedback in this thread. If something strange happens, please try loading the debug version and create three files.

  1. /tmp/log/cmh/LuaUPnP.log
  2. /tmp/log.Init.LuaUPnP. (This log will be empty in the non-debug version).
  3. The result of http://<vera_IP>/port_3480/data_request?id=user_data&output_format=xml from your browser
    Send me a PM with these files and explain what you did at what times as the logs were generated.

Release notes:

Version 2.00 - Initial release

Version 2.01 - Resolves an important bug in button response. The uninstaller also cleans up a bit better. Anyone who downloaded 2.00 should upgrade to this version.

Version 2.02 - This release has several important bug fixes and minor new features from 2.01

  • Support a new “single tap only” acceleration feature in the latest Homeseer HS-WS200 and HS-WD200 firmware which improves response time if multiple taps are not used.

  • Fix a bug with default HomeSeer L.E.D. flash rate

  • Fix a bug Evolve LCD1 highlight choice when more than one direct device is connected

  • Fix a regression bug with holding down buttons on the Cooper RFWC5 for non-scene-capable devices. (Thanks to @ronluna for reporting this.)

  • Improve handling of multi-state buttons on Evolve LCD1

  • Fix a bug with configuration display on Nexia One-Touch

  • 5-state multi-state buttons now go to 75% rather than 74% by default.

  • Disable the timeout feature if the event to be displayed after the timeout to is removed.

  • Min/Average/Max/First LED display now work properly on HomeSeer HS-WD200

    GenGenSceneController_2.02.zip (122.3 KB)
    GenGenSceneController_2.02d.zip (169.2 KB)

Gengen

1 Like

Awesome! Thanks for putting this together!
I’ll test it out as soon as I have a chance.

I had issues with the old plug-in, but I think I will test this one on my VeraLite…

I have updated the Scene Controller plugin to 2.02. Please see the first post on this thread.

This looks great, but it broke my dimmers. I can still turn lights/fans on and off via Vera, but any attempt to change the brightness/speed level fails.

I’ve been playing with this for a short while. Thanks again for building this.

Here’s the background info:
Hub: Vera Plus - UI7 latest firmware
Switch: HS-WD200+
zwave network size: about 60 devices
other plugins: none

So far I’m loving this, but I’ve found the following issues.

  • Multitap scenes are sometimes slow to respond or don’t respond at all. Trying to figure out if it’s because i’m tapping too slowly or too quickly, or just general zwave network congestion.
  • The lighting indicators for remote devices don’t seem to work. Playing around with the settings usually results in either no lights or no change.

I’ll find some time to install the debug version, but let me know if there’s anything I can supply to help debug.

@brianewman,
Thanks for the PM’ed logs. They were very useful in understanding the problem. However, I cannot reproduce your problem. The dimmers are working fine for me. You should not need to play with variables to make everything work.

  1. What Vera unit and what version of the Vera firmware are you running?
  2. Did you install the plugin first or did you include your dimmers into the Z-Wave network first?
  3. Are you running any other special plugins?

@silencery,

Unfortunately not all devices immediately report their status to the Vera controller. In general, if the status of the device is not reflected in the Vera UI, the remote dimmer setting or the indicator will not be correct.

That said, if you believe that the current setting is not displayed correctly on the LED’s or the indicator, please PM me both the LuaUPnP.log as well as the /tmp/Log.Init-LuaUPnP logs. In the message, please tell me exactly what you did at what times so I can corellate these events with the log.

@all

Please keep the feedback coming. I want to make this work well for everyone.

Gengen

@gengen,
My Vera has nothing but three HS-WD200+, two HS-FC200+, and your plugin. The dimmers and fan controllers were already included and working before installing the plugin, but I did exclude and re-include one of the dimmers after installing the plugin.

As long as I have at least one other device using D_DimmableLight1.xml, everything works. But if I only have HS-xxxxx devices that are affected by the plugin, Vera is unable to use services from D_DimmableLight1.xml (or something like that) so dimming doesn’t work.

I worked around the problem by creating a dummy device using D_DimmableLight1.xml. If I delete that device and restart Luup, dimming stops working on all the HomeSeer devices.

@brianewman

OK, thanks That may be the key. I had never tested with >only< HomeSeer devices included. I will try that. In the meantime, it looks like you are up and running. If you see any other problems, please send more feedback.

Gengen