encode zwave commands