Support to Scene modes using Remotec ZRC-90

Hello,

I just bought a Remotec ZRC-90 https://www.amazon.com/gp/product/B016YTTIVW/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1 and I’m wondering if anyone already tried to integrate it to HA.

I can see the event on libopenzwave but I don’t see any entity_id or name recognized on HA.

Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [libopenzwave] notif_callback : new notification
Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [libopenzwave] notif_callback : Notification type : 2, nodeId : 4
Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [libopenzwave] addValueId : ValueID : 72057594111328257
Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [libopenzwave] addValueId : GetCommandClassId : 128, GetType : 1
Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [libopenzwave] addValueId : Notification : {'valueId': {'type': 'Byte', 'commandClass': 'COMMAND_CLASS_BATTERY', 'units': '%', 'value': 100, 'index': 0, 'id': 72057594111328257, 'genre': 'User', 'readOnly': True, 'instance': 1, 'label': 'Battery Level', 'nodeId': 4, 'homeId': 3612075906}, 'nodeId': 4, 'homeId': 3612075906, 'notificationType': 'ValueChanged'}
Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [libopenzwave] notif_callback : call callback context
Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [openzwave] zwcallback args=[{'valueId': {'type': 'Byte', 'commandClass': 'COMMAND_CLASS_BATTERY', 'units': '%', 'value': 100, 'index': 0, 'id': 72057594111328257, 'genre': 'User', 'readOnly': True, 'instance': 1, 'label': 'Battery Level', 'nodeId': 4, 'homeId': 3612075906}, 'nodeId': 4, 'homeId': 3612075906, 'notificationType': 'ValueChanged'}]
Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [openzwave] Z-Wave Notification ValueChanged : {'valueId': {'type': 'Byte', 'commandClass': 'COMMAND_CLASS_BATTERY', 'units': '%', 'value': 100, 'index': 0, 'id': 72057594111328257, 'genre': 'User', 'readOnly': True, 'instance': 1, 'label': 'Battery Level', 'nodeId': 4, 'homeId': 3612075906}, 'nodeId': 4, 'homeId': 3612075906, 'notificationType': 'ValueChanged'}
Sep 28 18:05:21 tchellopi hass[6662]: 16-09-28 18:05:21 DEBUG (Dummy-5) [libopenzwave] notif_callback : end

On OZCP I can see the event:

2016-09-28 17:52:52.804 Detail, Node004,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x1e, 0x00, 0x08, 0xbf
2016-09-28 17:52:52.804 Detail, 
2016-09-28 17:52:52.805 Info, Node004, Received Central Scene set from node 4: scene id=8 in 0 seconds. Sending event notification.
2016-09-28 17:52:52.805 Warning, Node004, No ValueID created for Scene 8
2016-09-28 17:52:54.297 Detail, Node004,   Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x04, 0x03, 0x80, 0x03, 0x64, 0x12
2016-09-28 17:52:54.297 Detail, 
2016-09-28 17:52:54.298 Info, Node004, Received Battery report from node 4: level=100
2016-09-28 17:52:54.298 Detail, Node004, Refreshed Value: old value=100, new value=100, type=byte
2016-09-28 17:52:54.298 Detail, Node004, Changes to this value are not verified
2016-09-28 17:52:54.299 Detail, Node004, Notification: ValueChanged
2016-09-28 17:52:54.299 Info, Notification: Value Changed Home 0xd74be782 Node 4 Genre user Class BATTERY Instance 1 Index 0 Type byte

Based on the example above it seems that HA only battery event got recognized.

Does anyone have any pointers?

Thanks
mmello

Related links:


There is nothing to make this work in ha yet before there are support in ozw library for the central_scene commandclass. But My guess is that there will be a notification issued by ozw just like scene_activated that we can tap into and make use of. But we have to wait and see how it is implemented into ozw first.

Thanks @turbokongen. Yes I’m following the thread on ozw to check when it will be implemented then we can try to integrate with HA. :

Hi,

Is there any news on the inclusion of the ZRC-90 wireless switch?

I am not sure from the other threads and am on the first rung (2 evenings in since I got my USB controller and Fibaro dimmers) of learning HASS.

I’m on the same boat and I made it work with an ugly work around. I wrote something to tail the OZW log and inject events into Home Assistant.

It works perfectly, but it’s certainly not elegant.

4 Likes

nice work @mfdutra

I’ll try to implement here on my environment to start using the ZRC-90.

hi @mfdutra sorry for the noob question but this is my first time working with HA

do i add your files to my .homeassistant dir?

thanks for any help

Hi @tchellomello did you get it to work?

Hello @Kartono, yes I got it. I had to make a few modifications, but here is what I got:

Then I created the scripts with the rules below:

#scripts.yaml
zrc90_a_button_1:
  alias: "ZRC-90 control btn 1"
  sequence:
    - service: scene.turn_on
      data:
        entity_id: scene.alice_halogen

zrc90_a_button_2:
  alias: "ZRC-90 control btn 2"
  sequence:
    - service: scene.turn_on
      data:
        entity_id: scene.alice_dimmed

zrc90_a_button_3:
  alias: "ZRC-90 control btn 3"
  sequence:
    - service: scene.turn_on
      data:
        entity_id: scene.alice_blue

zrc90_a_button_4:
  alias: "ZRC-90 control btn 4"
  sequence:
    - service: light.turn_on
      data:
        entity_id: light.stairs
        transition: 1
        brightness: 254

    - service: script.turn_on
      data:
        entity_id: script.motion_stairs_detected_off

zrc90_a_button_5:
  alias: "ZRC-90 control btn 5"
  sequence:
    - service: light.turn_on
      data:
        entity_id: light.nightstand_marcelo
        transition: 5
        brightness: 254

zrc90_a_button_6:
  alias: "ZRC-90 control btn 6"
  sequence:
    - service: light.turn_on
      data:
        entity_id: light.nightstand_marcelo
        transition: 5
        brightness: 22

zrc90_a_button_7:
  alias: "ZRC-90 control btn 7"
  sequence:
    - service: light.turn_off
      data:
        entity_id: light.nightstand_marcelo

    - service: scene.turn_on
      data:
        entity_id: scene.dimmed_master_bathroom

zrc90_a_button_8:
  alias: "ZRC-90 control btn 8"
  sequence:
    - service: light.turn_off
      data:
        entity_id: light.alice_bedroom_l

    - service: light.turn_off
      data:
        entity_id: light.alice_bedroom_r

It works very well and very responsive too.

Make sure to adjust the script with the zwave NodeID assigned for your ZRC-90 device. The easiest way it basically to tail -f the file and then press a few buttons to see if the rule matches with your.

Please let us know if it worked for you.
mmello

1 Like

Hi @tchellomello sorry for the noob questions im so very new at this…

i get a “2017-02-06 03:15:53.112 Warning, Node008, No ValueID created for Scene 1” every time i press a botton

thanks for all your help

update @tchellomello so far i have done the following ( still cant get it to work)

• Added file zwave-events.py to /home/homeassistant/.homeassistant/zwave_monitor
• Added scripts.yaml to /home/homeassistant/.homeassistant
• Edit if socket.gethostname() == ‘pi.home’:
OZW_LOG = ‘/home/homeassistant/.homeassistant/OZW_Log.txt’
else:
OZW_LOG = ‘/tmp/OZW_Log.txt’

HA information

URI = ‘http://192.168.1.8:8123/api/services/script/turn_on
TOKEN = ‘secret’

• Added zwave-events.service to /lib/systemd/system ( edit hass to homeassistant)
• Added CentralScene.cpp to /srv/homeassistant/src/python-openzwave/openzwave/cpp/src/command_classes (jeedom plugin)

ok @tchellomello now seeing them in the ozw_log.txt but its not working with the scripts

Hi @tchellomello do i have to use a ifttt to make this work?

thanks agin

update… so it looks like a problem with mqtt, i dont know how to set this up so any help would be appreciated ( i did the all in one installer and it looks like i have mosquitto installed)

thanks

Hello @Kartono,

I’m sorry, I’ve being away from the computer a few days enjoying some days off.

Are you still hitting any issues? You don’t need IFTT or Mosquitto for this to work.

Which timezone are you? If you want, we can talk over gitter to troubleshoot it together.

Please let me know.
mmello

Hi guys
Total NOOB here and only been running HA for a couple days. Even though I have no scripting skills I seem to getting by from everyone’s posts and videos so thanks a lot for the community effort.
Still waiting for my Z-Stick to arrive. Got too eager and bought this remote before even checking the compatibility which I hope I don’t regret. Looks like a useful piece of hardware.
Found this on GitHub for Smartthings which seems to be a script for full functionality of the remote. Not sure if it can be used on HA and make it easier than using work arounds. Hope I’ve helped in some way and not off on a tangent :stuck_out_tongue:

HI @tchellomello

yes i still need help… im in Melbourne Australia but can work with what every time zone you are in

thanks

Geez way over my head for this one after taking a further look. @tchellomello tchellomello, possible to provide a guide if you don’t mind taking the time please or a beginner here?
Used to AIO script is that makes a different.
@Kartono Kartono, one thing I noticed is the sciprs tchellomello has is referencing the hass directory. I know my install uses the homeassistant. Not sure if that affects you or not.
Thanks

Hi @ackfool yes i used the all in one, so had to change the hass to homeassistant