“Central Scene” Command Class - Fibaro Swipe, HomeSeer WS-100D Switches

I also just saw that the example on home assistant page is different

Here u see scenecount=0

How did u figure out how to set your parameters?

Does anyone know how to stop home assistant with it running as HASSIO on a raspberry PI? I have hit the stop button on the configuration/General page but it says it failed to call the service. So I checked if anything was running which it looked like it didnt. I went and edited the zwcg.xxxx.xml file and by the time I was done editing it HA was running again which overwrites the changes when I restart HA.

from ssh command line:

hassio homeassistant stop

So after I did a hassio homeassistant restart the hassio homeassistant stop command didnt give me a message that there was no such command however it did not seem to stop HA. So i still attempted to edit the zwavecfg_xxx.xml file and upon a restart it was still over written.

Hmmm, I just tried it on my install and it worked fine. Maybe reboot and try again. It will give you a “success” message if it worked

I’ve spent the last few days trying to get doubletap working on my Homeseer WD100+ dimmer, and can’t make it work. I’m attempting to use doubletap-off to turn off a group of lights.

I added the segment from the device specific page to my zwcfg file. (I replaced the entire CommandClass 91 section with the snippet from that page.)

This is my automation:

- alias: Homeseer All Off
  trigger:
    platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.living_room_overhead_18
      scene_id: 2
      scene_data: 3
  action:
    service: homeassistant.turn_off
    entity_id: group.livingspace

My ozw_log has this portion, that I think is the scene activation from the switch, but my action never triggers.

2018-01-08 20:18:36.931 Detail, Node018,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x12, 0x05, 0x5b, 0x03, 0x14, 0x03, 0x02, 0xaa
2018-01-08 20:18:36.931 Info, Node018, Received Central Scene set from node 18: scene id=2 in 3 seconds. Sending event notification.
2018-01-08 20:18:36.931 Detail, Node018, Initial read of value
2018-01-08 20:18:36.931 Detail, Node018, Notification: ValueChanged

I’m noticing that I never see any scene_data in any of my logs, but I’m not sure what the issue is there. Any ideas on why this won’t work?

@hoffsta This is what I get.
image

1 Like

Very strange. What version are you using? This worked for me on .60 and .60.1

I just updated to .60.1 today. and this was after that. what do you get when you do hassio help?

image

I’m not at home to test but I remember that the ‘stop’ command is not listed as one of the options. I found reference to using it in some other thread and just tried it. My version panel looks exactly like yours. I have the ssh add-on version 2.9

So I think I got it. I never thought about updating the SSH add-on. I just did that as I was on 2.7 and it updated to 3.0 which brought in many other commands and hassio homeassistant stop was one of them. I updated the zwavecfg file and it looks like it held the changes this time.

Now just to figure out the automations. I believe the double taps are working correctly as i get this in the logs. from what I gather the Value is the scene data with corresponds to the single, double, and triple taps. However My automation isnt work. I have inserted that below to see if someone can help me with that.

2018-01-09 18:38:59.115 Info, Node004, Received Central Scene set from node 4: scene id=1 in 3 seconds. Sending event notification.
2018-01-09 18:38:59.115 Detail, Node004, Refreshed Value: old value=0, new value=3, type=int
2018-01-09 18:38:59.116 Detail, Node004, Changes to this value are not verified
2018-01-09 18:38:59.116 Detail, Node004, Notification: ValueChanged
2018-01-09 18:39:27.921 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x03, 0x03, 0x02, 0xab
2018-01-09 18:39:27.922 Detail,
2018-01-09 18:39:27.922 Info, Node004, Received Central Scene set from node 4: scene id=2 in 3 seconds. Sending event notification.
2018-01-09 18:39:27.922 Detail, Node004, Refreshed Value: old value=0, new value=3, type=int
2018-01-09 18:39:27.922 Detail, Node004, Changes to this value are not verified
2018-01-09 18:39:27.922 Detail, Node004, Notification: ValueChanged
2018-01-09 18:39:43.876 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x04, 0x04, 0x01, 0xa8
2018-01-09 18:39:43.877 Detail,
2018-01-09 18:39:43.877 Info, Node004, Received Central Scene set from node 4: scene id=1 in 4 seconds. Sending event notification.
2018-01-09 18:39:43.877 Detail, Node004, Refreshed Value: old value=3, new value=4, type=int
2018-01-09 18:39:43.877 Detail, Node004, Changes to this value are not verified
2018-01-09 18:39:43.877 Detail, Node004, Notification: ValueChanged
2018-01-09 18:44:17.727 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x05, 0x04, 0x02, 0xaa
2018-01-09 18:44:17.727 Detail,
2018-01-09 18:44:17.728 Info, Node004, Received Central Scene set from node 4: scene id=2 in 4 seconds. Sending event notification.
2018-01-09 18:44:17.728 Detail, Node004, Refreshed Value: old value=3, new value=4, type=int
2018-01-09 18:44:17.728 Detail, Node004, Changes to this value are not verified
2018-01-09 18:44:17.728 Detail, Node004, Notification: ValueChanged

- alias: North Mud Room On with Porch Switch
  trigger:
   - platform: event
     event_type: zwave.scene_activated
     event_data:
       entity_id: zwave.northporchlight_switch
      scene_id: 1
      scene_data: 3
  action:
    service: switch.turn_on
    data:
      entity_id: switch.north_mud_room_switch

- alias: North Mud Room On with Porch Switch
  trigger:
   - platform: event  
     event_type: zwave.scene_activated
     event_data:
       entity_id: zwave.northporchlight_switch
       scene_id: 2
       scene_data: 3
  action:
    service: switch.turn_off
    data:
      entity_id: switch.north_mud_room_switch

My formatting is slightly different, it’s probably the usual indention non-sense of yaml:

- alias: Living Room Double Up
  hide_entity: True
  trigger:
    platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.living_room_dimmer
      scene_id: 1
      scene_data: 3
  action:
    - service: scene.turn_on
      entity_id: scene.living_room_lights_full

- alias: Living Room Double Down
  hide_entity: True
  trigger:
    platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.living_room_dimmer
      scene_id: 2
      scene_data: 3
  action:
    - service: scene.turn_on
      entity_id: scene.living_room_lights_dim

Thanks for your example that got mine fixed. i had the wrong entity id.

Thank you so much for your help. Like I said that was frustrating me.

Now, I just did some testing. The Double Tap, and triple tap work great. However when i do the hold which is scene data 2 it fires the action i have set for the triple tap but it also turns the local load on and off. Any thoughts?

This is what my Logs are for the Hold and the automation.

2018-01-09 19:28:57.115 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x63, 0x02, 0x01, 0xc9
2018-01-09 19:28:57.116 Detail,
2018-01-09 19:28:57.116 Info, Node004, Received Central Scene set from node 4: scene id=1 in 2 seconds. Sending event notification.
2018-01-09 19:28:57.116 Detail, Node004, Refreshed Value: old value=3, new value=2, type=int
2018-01-09 19:28:57.116 Detail, Node004, Changes to this value are not verified
2018-01-09 19:28:57.117 Detail, Node004, Notification: ValueChanged
2018-01-09 19:28:57.138 Detail, Node004, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x04, 0x03, 0x25, 0x03, 0xff, 0x2c
2018-01-09 19:28:57.139 Detail,
2018-01-09 19:28:57.139 Info, Node004, Received SwitchBinary report from node 4: level=On
2018-01-09 19:28:57.139 Detail, Node004, Refreshed Value: old value=false, new value=true, type=bool
2018-01-09 19:28:57.140 Detail, Node004, Changes to this value are not verified
2018-01-09 19:28:57.140 Detail, Node004, Notification: ValueChanged
2018-01-09 19:28:57.315 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x64, 0x02, 0x01, 0xce
2018-01-09 19:28:57.316 Detail,
2018-01-09 19:28:57.316 Info, Node004, Received Central Scene set from node 4: scene id=1 in 2 seconds. Sending event notification.
2018-01-09 19:28:57.316 Detail, Node004, Refreshed Value: old value=2, new value=2, type=int
2018-01-09 19:28:57.317 Detail, Node004, Changes to this value are not verified
2018-01-09 19:28:57.317 Detail, Node004, Notification: ValueChanged
2018-01-09 19:28:57.414 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x65, 0x01, 0x01, 0xcc
2018-01-09 19:28:57.415 Detail,
2018-01-09 19:28:57.415 Info, Node004, Received Central Scene set from node 4: scene id=1 in 1 seconds. Sending event notification.
2018-01-09 19:28:57.415 Detail, Node004, Refreshed Value: old value=2, new value=1, type=int
2018-01-09 19:28:57.415 Detail, Node004, Changes to this value are not verified
2018-01-09 19:28:57.415 Detail, Node004, Notification: ValueChanged
2018-01-09 19:28:59.313 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x66, 0x02, 0x02, 0xcf
2018-01-09 19:28:59.314 Detail,
2018-01-09 19:28:59.314 Info, Node004, Received Central Scene set from node 4: scene id=2 in 2 seconds. Sending event notification.
2018-01-09 19:28:59.314 Detail, Node004, Refreshed Value: old value=3, new value=2, type=int
2018-01-09 19:28:59.314 Detail, Node004, Changes to this value are not verified
2018-01-09 19:28:59.314 Detail, Node004, Notification: ValueChanged
2018-01-09 19:28:59.336 Detail, Node004, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x04, 0x03, 0x25, 0x03, 0x00, 0xd3
2018-01-09 19:28:59.337 Detail,
2018-01-09 19:28:59.337 Info, Node004, Received SwitchBinary report from node 4: level=Off
2018-01-09 19:28:59.337 Detail, Node004, Refreshed Value: old value=true, new value=false, type=bool
2018-01-09 19:28:59.337 Detail, Node004, Changes to this value are not verified
2018-01-09 19:28:59.337 Detail, Node004, Notification: ValueChanged
2018-01-09 19:28:59.514 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x67, 0x02, 0x02, 0xce
2018-01-09 19:28:59.515 Detail,
2018-01-09 19:28:59.515 Info, Node004, Received Central Scene set from node 4: scene id=2 in 2 seconds. Sending event notification.
2018-01-09 19:28:59.516 Detail, Node004, Refreshed Value: old value=2, new value=2, type=int
2018-01-09 19:28:59.516 Detail, Node004, Changes to this value are not verified
2018-01-09 19:28:59.516 Detail, Node004, Notification: ValueChanged
2018-01-09 19:28:59.627 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x68, 0x01, 0x02, 0xc2
2018-01-09 19:28:59.627 Detail,
2018-01-09 19:28:59.627 Info, Node004, Received Central Scene set from node 4: scene id=2 in 1 seconds. Sending event notification.
2018-01-09 19:28:59.627 Detail, Node004, Refreshed Value: old value=2, new value=1, type=int
2018-01-09 19:28:59.627 Detail, Node004, Changes to this value are not verified
2018-01-09 19:28:59.627 Detail, Node004, Notification: ValueChanged

- alias: North Mud Room On with Porch Switch
  trigger:
   - platform: event
     event_type: zwave.scene_activated
     event_data:
      entity_id: zwave.northporchlight
      scene_id: 1
      scene_data: 2
  action:
    service: switch.turn_on
    data:
      entity_id: switch.desk_lamp

- alias: North Mud Room On with Porch Switch
  trigger:
   - platform: event  
     event_type: zwave.scene_activated
     event_data:
       entity_id: zwave.northporchlight
       scene_id: 2
       scene_data: 2
  action:
    service: switch.turn_off
    data:
      entity_id: switch.desk_lamp

I haven’t actually setup any hold events on hass yet so I can’t speak from experience. I do remember having issues when these were paired to my Smarthings hub, in that on a hold down event the local load would turn off. I don’t think there’s anyway to separate the local load from the scene controller (which would be a killer firmware addition that I’ve requested from Homeseer but don’t expect they’ll ever implement). I have a few of these switches/dimmers that I use only as scene controllers, with no local load attached and they work good for that.

I know there are two scenes activated by a hold event, one at the start, and one at the end.

Hold start:
scene_id: 1
scene_data: 2

Hold end:
scene_id: 2
scene_data: 2

2 Likes

This is very helpful indeed! Thanks for sharing.

I have both the keyfob and a button, so an edit to the xlm file is needed:

KeyFob:

<CommandClass id="91" name="COMMAND_CLASS_CENTRAL_SCENE" version="1" request_flags="4" innif="true" scenecount="6">
			<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="6" />
			<Value type="int" genre="user" instance="1" index="1" label="Square" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
			<Value type="int" genre="user" instance="1" index="2" label="Circle" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
			<Value type="int" genre="user" instance="1" index="3" label="X" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
			<Value type="int" genre="user" instance="1" index="4" label="Triangle" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
			<Value type="int" genre="user" instance="1" index="5" label="Minus" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
			<Value type="int" genre="user" instance="1" index="6" label="Plus" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
		</CommandClass>

Button:

<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="2" />
		<Value type="int" genre="user" instance="1" index="1" label="Top Button Scene" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
</CommandClass>

Does anyone know how you add the command class for both? ie do you need to combine the code above somehow to be able to use all the buttons on the fob, and also the single button as well for a different purpose? For example, a single press of the bug button to trigger a panic alarm, and the keyfob to control lighting

Has anyone been able to get both a button and keyfob working together? I was able to get the Button working by adding the COMMAND class id=“91” to my zwave cfg, however not sure how to then add the keyfob values as well to get them both working.

Could it be something like changing the instance number?

Hello HA Experts,

I just started playing with my Homeseer switches. The extra functions of these switches is one of the reasons I transitioned from my old system to HA. I copied the command class 91 section to my ozwcache.xml and added the following automation:

- action:
  - data:
      entity_id: scene.wake_up
    service: scene.turn_on
  alias: Double Tap Up MB Switch Runs Wake Up
  condition: []
  id: '1516216872217'
  trigger:
  - event_data:
      entity_id: zwave.master_bedroom
      scene_data: 3
      scene_id: 1
    event_type: zwave.scene_activated
    platform: event

Here is my logs after a double tap:

2018-01-17 14:49:23.153 Info, Node005, Received Central Scene set from node 5: scene id=1 with key Attribute 3. Sending event notification.
2018-01-17 14:49:23.154 Detail, Node005, Initial read of value
2018-01-17 14:49:23.154 Detail, Node005, Initial read of value
2018-01-17 14:49:23.154 Detail, Node005, Notification: ValueChanged
2018-01-17 14:49:23.169 Detail, Node005, Notification: ValueChanged

As I am just learning, most of my struggles are simple user errors. Any assistance greatly appreciated.

Thanks

I’m trying ti incorporate a 7 button in wall scene switch. It shows up as:

Enerwave ZWN-SC7 7-Button Scene Controller (Node:7 Complete)

This is the correct information for the device and I understand there’s some file editing that has to be done. Has anyone actually got one of these working as of yet? I had it working under Vera to a degree. If I can’t find an answer, I may have to put it back on the Vera for the time being… I’d rather have it here…

Update: There is no central scene component in my zwave config (zwcfg) file. I have “COMMAND_CLASS_SCENE_ACTIVATION” instead. Now to figure out how that is used…

Sorry to hijack this thread. I am trying out a few Homeseer dimmers and just have a quick question. Is the central scene needed for these switches to work properly in the UI (it flip flops and gets stuck at certain dim levels when toggling for me) and it’s not supported yet by OZW? There’s a lot of related info floating around and I’m not sure if it’s just needed to support the other gestures.