Hank Scene Controller

I picked up a one-key scene controller (HKZW-SCN01) based on price, minimalist design, and the fact that other users seem to have gotten it working for them, but I’m not able to get it up and running to the point where it can be functional.

It has been successfully added to the Z-Wave network, and pressing the button does increase receivedCnt, receivedDups, sentTS and receivedTS. The only entity for the device is the battery level (and itself).

Following https://www.home-assistant.io/docs/z-wave/device-specific/ I replaced all entries with COMMAND_CLASS_CENTRAL_SCENE (3 in total) so that they are now:

<CommandClass id="91" name="COMMAND_CLASS_CENTRAL_SCENE" version="1" request_flags="1" innif="true" scenecount="0">
  <Instance index="1" />
  <Value type="int" genre="system" instance="1" index="0" label="Scene Count" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
  <Value type="int" genre="system" instance="1" index="1" label="Button One" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
</CommandClass>

I’m attempting to use the following automation as a test:

  alias: Hank
  description: ''
  trigger:
  - event_data:
      entity_id: zwave.hank_electronics_ltd_unknown_type_0201_id_0009
      scene_id: 1
    event_type: zwave.scene_activated
    platform: event
  condition: []
  action:
  - data:
      message: hank
    service: notify.me

Triggering the automation in the UI does enable the action, but pressing the button on the controller itself does not work, and does not show up in the logbook either.

I’ve reached the end of my skill set (keyword searches and copy/paste); the latest thread where someone seems to have gotten it working for them was in early 2018, does anyone have some updated advice? Thank you!

Did you stop HA before editing the file?

No, I did not.

edit: I do recall seeing somewhere that HA might/would overwrite any edits to zwcfg, but after restarting the server the changes are still in place.

Then I would check the OZW_Log.txt and monitor what happens when you press a button. If you see something about a missing Value ID then it would be because of the XML file.

Thank you for your time!

Here’s the log from a button press, I see the warning but am not sure what the next troubleshooting step would be:

2020-01-29 10:21:47.475 Detail, Node010,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x0a, 0x05, 0x5b, 0x03, 0x95, 0x00, 0x01, 0x33
2020-01-29 10:21:47.476 Detail,
2020-01-29 10:21:47.476 Info, Node010, Received Central Scene set from node 10: scene id=1 in 0 seconds. Sending event notification.
2020-01-29 10:21:47.476 Warning, Node010, No ValueID created for Scene 1
2020-01-29 10:21:47.808 Detail, Node010,   Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x0a, 0x03, 0x80, 0x03, 0x64, 0x1c
2020-01-29 10:21:47.809 Detail,
2020-01-29 10:21:47.809 Info, Node010, Received Battery report from node 10: level=100
2020-01-29 10:21:47.809 Detail, Node010, Refreshed Value: old value=100, new value=100, type=byte
2020-01-29 10:21:47.809 Detail, Node010, Changes to this value are not verified
2020-01-29 10:21:47.809 Detail, Node010, Notification: ValueChanged
2020-01-29 10:21:49.374 Detail, Node010,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x0a, 0x05, 0x5b, 0x03, 0x97, 0x02, 0x01, 0x33
2020-01-29 10:21:49.374 Detail,
2020-01-29 10:21:49.374 Info, Node010, Received Central Scene set from node 10: scene id=1 in 2 seconds. Sending event notification.
2020-01-29 10:21:49.374 Warning, Node010, No ValueID created for Scene 1
2020-01-29 10:21:50.754 Detail, Node010,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x0a, 0x05, 0x5b, 0x03, 0x99, 0x01, 0x01, 0x3e
2020-01-29 10:21:50.755 Detail,
2020-01-29 10:21:50.755 Info, Node010, Received Central Scene set from node 10: scene id=1 in 1 seconds. Sending event notification.
2020-01-29 10:21:50.755 Warning, Node010, No ValueID created for Scene 1

The warning means the entry in the XML file doesn’t exist. You should follow the docs exactly: stop HA, then edit the zwcfg*.xml file, then start HA.

Also,

What do you mean by “all entries” and “3 in total”? Do you have other scene capable devices? You only need to edit the node that you want to enable scenes for.

Thank you, I will try following the exact instructions.

I only have the one scene controller, but when I was trying to brute my way to get it working I searched for all instances in the zwcfg file that had COMMAND_CLASS_CENTRAL_SCENE and replaced those with the suggested code from the device-specific page.

What other devices do you have? Light switches? Sounds like you have the possibility of using scenes with those as well. Depending on the device, they may require different XML. Doesn’t hurt having them there, the just may not support all possible scenes.

For the Hank, you should just be able to search for “Hank”, scroll down a bit and find the right one to edit.

Yes- I have light switches, in fact my intention with the Hank controller is to use it as a remote switch for one of the switches, an additional way turn on a set of lights that are controlled by one of my Z-Wave switches.

Searching through my zwcfg file I don’t actually have any entries for “hank” or its assigned node (10), maybe I’ve missed a step?

That’s not really possible… You’re either looking at the wrong file (left over after a hardware reset?), or you haven’t stopped HA yet. The file is only written once HA stops (technically, when the z-wave network stops), or you click on “Save Config” on the z-wave control panel.

Thank you so much- I keep getting interrupted by work so can only play with HA in fits and starts, but I confirmed that after using Save Config in the z-wave control panel that “Hank” and its nodes have appeared in the zwcfg file. My next step will be to configure Samba (have been using Configurator in the UI up until now) so that I can make the changes with HA stopped as you suggested.

Got it working as expected and planned; looking through my post history this is not the first time you’ve helped me, I’m grateful, thank you so much!

I’ve got the same problem with the Hank Scene Controller. It is successfully added to the z-wave network, i have also added the line for ‘Button One’ in the Z-wave cfg file.
I have stopped the Z-Wave network first, added the line and started the Z-Wave network again. Even restarted HA and later also the system itself.
The only thing i see (no difference with or without the “extra line”) is:


This is my COMMAND_CLASS_CENTRAL_SCENE config.

			<CommandClass id="91" name="COMMAND_CLASS_CENTRAL_SCENE" version="1" request_flags="4" innif="true" scenecount="0">
				<Instance index="1" />
				<Value type="int" genre="system" instance="1" index="0" label="Scene Count" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
				<Value type="int" genre="system" instance="1" index="1" label="Button One" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
			</CommandClass>

The only difference i see is that “request_flags” has a differend value in my config then is noted in the docs. (But changing that didn’t make any difference)

Am i missing something?
Thanks in advance

What isn’t working? You won’t get any new entities.

I can’t select anything to create an automation rule with (only the battery, that’s not really helpfull :sweat_smile:)


But indeed, I was also expecting something like this

(Button_click)

But maybe i just don’t know what ‘trigger type’ to select for the automation rule…
I’ve looked at ‘state’, but couldn’t get it to work jet.

I have used it in my Fibaro HC2 and that was really simple.

I doubt zwave scenes are supported as Device automations. Follow the examples in the docs and just use the normal zwave.scene_activated events as a trigger.

Do you know where i can find some examples? (haven’t found them jet…)
Are the in code? of can i create these automations from the GUI?

thanks

Figured it out… :slight_smile:

Can you explain how you figured it out?

Hi @urs,

As pointed out by @freshcoast, you can use the zwave.scene_activated events as a trigger.
Here is a demo automation rule I have deveined.

Automation
Name: Test the button

Trigger
Trigger type = Event, Event type = ‘zwave.scene_activated’

Action
In my case i linked it to a device (a wall plug from Phillio Tech)

Action type: Device
Device: <select the device you want to do the action with>
Action: <choose the desired action>

and I added another action to send a push notification to “all” my devices

Action type: Call service
Service: notify.notify
Service data: message: '<The desired message>'

I hope this will help you.